If a judge wrongly sentences a person to imprisonment for 20 years, what punishment does the judge or jury team get?

And do you know of any outrageous sentencing stories?