Object lesson has 2 different meanings across 1 category:
Noun
punishment intended as a warning to others
"they decided to make an example of him"
A lesson taught (especially to young children) using a familiar or unusual object as a focus.