R.I. Gen. Laws § 12-9-12. Appearance of prisoner before judge — Application for habeas corpus.