This movie has a scene where a guy gets an appointed lawyer that is a drug abuser. The lawyer asks if he "has any toot" and a few other drug references. The judge appears shortly after and the lawyer asks the judge the same thing. Obviously ending the trial pretty quickly. It's a funny scene. Any idea what movie this could be from?