The amended petition must be written on the courtapproved petition for writ of habeas corpus form. The Writ of Habeas Corpus demands that requires a prisoner must go before the court to determine if there is lawful authority to detain the prisoner.Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. The Defendant's conviction was obtained, or the Defendant's sentence was imposed, in violation of the. In his Petition for. Writ of Habeas Corpus, Petitioner names Charles L. Ryan and the Arizona Attorney. This file provides a petition template for post-conviction relief in Arizona. On May 14, 2009, Manuel Moraga, an inmate confined in the Arizona State Prison. Each applicable question in this form must be answered fully, but concisely. An Arizona Attorney may file a writ of habeas corpus early in a defendant's case if there is a concern that they are being held without bond.