If there was a law punishing people for not putting shopping carts back, I would deliberately break it and sue whatever stupid fucking government passed such a thing under the grounds listed in the post.
A law like that would be a violation of our rights. You can't just use government to force people to do whatever you want. We have rights.