It tests the legality of a detention or a restraint and the goal is to use it really almost i guess it's an emergency basis. A writ of habeas corpus is used to bring a prisoner or other detainee (e.g.The petition for writ of habeas corpus is GRANTED. Respondent's motion to dismiss is respectfully DENIED. This article offers trial practitioners a synopsis of the extraordinary writs most courts use to review interlocutory orders and actions. The petition for writ of habeas corpus was denied. Q. We currently have an adult under a Marchman Act Involuntary Court Order for.