"Goodies in the Nick"
is an episode of The Goodies starring
Tim Brooke-Taylor, Graeme Garden, and Bill Oddie.
The Goodies help out a police officer by committing a crime so that he can arrest someone. The plan goes horribly wrong the officer arrests them, and the Goodies are thrown in jail.