N.D.C.C. § 29-32.1-02
Exercise of original jurisdiction in habeas corpus
A court in which original jurisdiction in habeas corpus is vested may entertain a habeas corpus proceeding under chapter 32-22 or this chapter. This chapter, to the extent appropriate, governs the proceeding.