This a-hole judge should be removed from the bench and fired for this. Or at least forced to undergo the same treatment.
Has this judge even been to court before? If you’re not there to sue or be sued(or tried) or to watch someone for a specific reason, then court is boring as hell. Instead of punishing someone who fell asleep, congratulate those who stayed awake - that’s far more worthy of notice.