Yes, that sentence is a simile, because it uses the word 'like'. For a sentence to be a simile, it has to use the words 'like, or 'as'. A metaphor compares things without using like or as, for example: He is a cheetah that zooms across the Savannah. :)
A
Explanation: This prohibits the government from harsh penalties
metaphor If this is like the other question I saw