The punishment for contempt, where not otherwise specifically provided, shall be:
1. In the supreme court or the court of appeals, by a fine not exceeding one thousand dollars or by imprisonment in a county jail not exceeding six months, or by both such fine and imprisonment.
2. Before district judges, district associate judges, and associate juvenile judges by a fine not exceeding five hundred dollars or imprisonment in a county jail not exceeding six months or by both such fine and imprisonment.
3. Before judicial magistrates, by a fine not exceeding one hundred dollars or imprisonment in a county jail not exceeding thirty days.