Filling out the form. Fill out the attached form and answer each item completely in the space provided.1. The petition for writ of habeas corpus form is designed to help you prepare a petition seeking relief pursuant to 28 U.S.C. § 2254. Answer this writ, stating the authority under which you restrain the prisoner. Exercise custody over the minor child. Instant access to fillable Microsoft Word or PDF forms. Minimize the risk of using outdated forms and eliminate rejected fillings. First, a U.S.C. § 2254 allows us to file a petition for Habeas Corpus when the client is in custody under sentence of a state court and is in a state prison. A 2254 petition must be filed in the federal district court that has jurisdiction over the county where the conviction occurred. If Petitioner wishes to proceed with his action, he must carefully fill out the form and submit it to the Court.