The supreme court, subject to such regulations and conditions as it may prescribe, always must be open for the issuance and return of all writs and process which it may lawfully issue and for the hearing and determination of the same. Any judge of said court may order the issuance of any such writ or process and prescribe the time and manner of service and the time and place of return of the same. In cases of habeas corpus, the judge of the supreme court who issues or causes the writ to issue may direct that the writ must be made returnable and must be heard and determined, either before the supreme court or any judge thereof, or before any district court of this state, or any judge of any district court of this state. Any district court or any judge thereof before whom any writ is made returnable as prescribed in this section is authorized to carry into complete execution all of its judgments, decrees, and determinations, subject to appeal as provided by law.
N.D.C.C. § 27-02-16