The writ of habeas corpus is the remedy to be used when any person is restrained in his liberty. Include all of your grounds for relief and all of the facts that support each ground for relief in this petition.Please carefully read through all the steps listed below before you begin. Here is a petition for writ of habeas corpus example. A Writ of Habeas Corpus (Latin for "that you have the body") may be filed on behalf of a person who is unlawfully imprisoned. An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment. In general, Texas writs of habeas corpus address the violation of rights outside the court record, such as an ineffective attorney. If the application is filed prior to disposition of the case, it is filed in the assigned District Court or County Criminal Court at Law. TO THE HONORABLE DISTRICT JUDGE ELIA CORNEJO LOPEZ: Applicant Manuel Velez is currently confined on death row at the Texas Department of. (The district clerk of the county of conviction will fill in this blank.) IN THE COURT OF CRIMINAL APPEALS OF TEXAS.