(a) An application for a writ of habeas corpus under this article must be filed with the clerk of the court in which community supervision was imposed. I am the Petitioner in this Petition for Writ of Habeas Corpus.A writ of habeas corpus is based solely on the constitution and whether a sentence is unconstitutional. In this application form: 1. To initiate a state writ of habeas corpus in Texas, a person must first file a petition with the appropriate court. An application for a writ of habeas corpus asks a court to overturn your conviction because of a state or federal constitutional violation. The CIU handles all post-conviction reviews, writs of habeas corpus, Chapter 64 motions, and clemency and commutation petitions. The purpose of a Writ of Habeas Corpus is for the court to determine whether it has lawfully convicted and sentenced a person. A habeas corpus writ is solely based on the constitution and whether or not a sentence is constitutional. It gives judges the power to require law enforcement to justify an arrest.