This petition must be clearly handwritten in ink or typed. You should exercise care to make sure all answers are true and correct.How Do I Fill Out the Form? There is an official form (Judicial Council Form HC-001) for filing a state petition for writ of habeas corpus. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. A writ of habeas corpus petition is a tool that individuals convicted of criminal offenses in California can use to challenge their imprisonment. Add the Writ of Habeas Corpus Ad Testificandum - Superior Court, Sacramento - saccourt ca for redacting. It cannot be gainsaid that any other county has greater, or more proper, concern with the issues raised in the Habeas Corpus Petition. They must have also filed a direct appeal to the appellate court and then to the California Supreme Court. Petitioner has filed a petition for a writ of habeas corpus under 28 U.S.C. § 2254 challenging his state conviction.