; and (ii) that describes the reasons for granting the relief. (2) Appeal (A) In general An applicant who is denied relief under paragraph (1)(B) may file a petition for judicial review of the denial with the district court of the United States for the district in which the applicant resides. (B) Hearing A court that receives a petition under subparagraph (A) shall hold a hearing to determine whether to grant the petitioner relief described in paragraph (1)(A) not later than 72 hours after the petitioner files the petition. (C) Notice and opportunity to be heard (i) In general The court shall provide the petitioner with notice and the opportunity to be heard at a hearing under this paragraph, sufficient to protect the due process rights of the petitioner. (ii) Right to counsel (I) In general At a hearing under this paragraph, the petitioner may be represented by counsel who is— (aa) chosen by the petitioner; and (bb) authorized to practice at such a hearing. (II) Court-provided counsel If the petitioner is financially unable to obtain representation by counsel, the court, at the request of the petitioner, shall ensure to the extent practicable that the petitioner is represented by an attorney for the Legal Services Corporation with respect to the petition. (D) Burden of proof; standard At a hearing under this paragraph, the Attorney General— (i) shall have the burden of proving all material facts