(1)    Except as provided in sub. (2), an operator of a charter school under s. 118.40 (2r) or (2x) is a local educational agency, as defined in 20 U.S. Code § 1401 (19), and shall comply with 20 U.S. Code § 1400 to 1482.
   (2)   The board of directors of the school district operating under ch. 119 is a local educational agency under this section and shall comply with 20 U.S. Code § 1400 to 1482 if the board of directors enters into a written agreement with an operator of a charter school under s. 118.40 (2r) or (2x) under which the board of directors agrees to serve as the local educational agency.