actions (1) In general Compliance or noncompliance by any agency with the provisions of section 382, paragraphs (1) and (2) of section 383(a), and subsections (a) and (b) of section 385 shall be subject to judicial review in accordance with this section. (2) Limited review of agency compliance or noncompliance (A) Agency compliance or noncompliance with the provisions of section 382, paragraphs (1) and (2) of section 383(a), and subsections (a) and (b) of section 385 shall be subject to judicial review under section 706(1) of title 5, United States Code, and as provided under subparagraph (B). (B) If an agency fails to prepare the written statement (including the preparation of the estimates, analyses, statements, or descriptions) under section 382, prepare the written plan under paragraphs (1) and (2) of section 383(a), or comply with subsections (a) and (b) of section 385, a court may compel the agency to prepare such written statement, prepare such written plan, or comply with such section