Nothing in sections 589.01 to 589.30 is to be construed to prevent a court from issuing a writ of habeas corpus necessary or proper to bring an inmate before it or an inferior court for trial, an omnibus hearing, arraignment, appearance, or to be examined as a witness in a civil or criminal action or proceeding.
Minn. Stat. § 589.28
(9766) RL s 4600; 1969 c 198 s 1; 1985 c 265 art 9 s 1