(A) On filing, the clerk of the court must immediately deliver the petition to the presiding judge or his or her designee. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully.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. A writ of habeas corpus petition is a tool that individuals convicted of criminal offenses in California can use to challenge their imprisonment. The inmate may file a petition for writ of habeas corpus. The writ of Habeas Corpus is the legal system's last line of defense against unlawful incarceration. Writ of Habeas Corpus – A paramount writ in common law systems, it effectively safeguards individual freedom against arbitrary detention. Or appellate counsel have traditionally fallen within the perview of the Writ of Habeas Corpus. The proper Court to issue the Writ of Habeas Corpus is the Court wherein Petitioner is illegally confined.