46-22-202. Granting writ of habeas corpus. (1) A writ of habeas corpus may be granted by any justice of the supreme court or by any district court judge upon petition by or on behalf of any person restrained of liberty within the justice's or judge's jurisdiction.
(2) When a writ of habeas corpus is issued, it may be made returnable before the issuing court.