Some suspects are fitted with electric shock vests at trials if they are deemed a flight risk or risk to others. But the shocks are supposed to only be used in case of an emergency.
A judge used the shock vest on one subject who refused to answer his questions. But did the judge issue the shocks himself? No. He ordered the bailiff to do so. And of course, the bailiff complied.