No court or judge, on the return of a writ of habeas corpus, may inquire into the legality or justice of any order, judgment, or process specified in AS 12.75.020 or into the justice, propriety, or legality of a commitment for a contempt made by a court, officer, or body, according to law, and charged in the commitment, as provided by law.