Every person imprisoned or restrained of the person's liberty under any pretense whatever may prosecute a writ of habeas corpus to inquire into the cause of such imprisonment or restraint and thereby, except in the cases specified in section 32-22-02, obtain relief from such imprisonment or restraint if it is unlawful.
N.D. Cent. Code § 32-22-01
Persons restrained may prosecute the writ
Official source: North Dakota Legislative Branch. Reproduced from public-domain North Dakota statutes; confirm against the official source for the current text. Not legal advice.