An example that requires police to be involved: Small Town A has a law stating that anyone dealing drugs must be caned for the first offense. Someone deals drugs in Small Town, so police catch them and cane them.
I swear, some of y'all just dream of being able to cane people or something.