Teenage Mutant Ninja Turtles
Leonardo, The Renaissance Turtle
S5 E19:
Professor Mindbender fools the Mayor into installing Lex, a supercop robot, to clean up crime, but rewires him to arrest practically the whole city.