534:25 Contempt.
If the person is imprisoned or restrained by order of a justice, or of any court or authority other than the supreme or superior court or a justice thereof, for contempt, the proceedings in the order and the cause thereof may be revised, and the order affirmed, modified or reversed by the superior court or a justice thereof.