I'm glad they got caught. That will 'teach them a lesson'! [=they will learn that they should not do that again]
We 'learned our lesson' the hard way. [=we learned from an unpleasant experience]
They studied the 'lessons' [='teachings'] of the great philosophers.
(..) Where's everybody goin'? - We don't work here anymore. - What? Is your sister still around? I did the right thing, Michael. If I don't fire them, how do I teach a lesson to the others? - There are no others. You fired everyone. - Oh, that- that's great. The guy who's dirty dancing with his niece (..)2004 TvShow: Arrested Development Title: Afternoon Delight Season: 2 Episode 6
(..) So that you would never be alone? Michael, a mother doesn't have a child to give herself company. - Annyong was to teach Buster a lesson. - And where is that little lesson? I sent him to the Milford Academy to teach a lesson. I can't remember about what. And Buster left this morning (..)2004 TvShow: Arrested Development Title: Afternoon Delight Season: 2 Episode 6