N.Y. Education Law § 3202
4. a. Definitions. For purposes of this subdivision only, the following definitions shall apply.
6-a. Notwithstanding subdivision six of this section or any other law to the contrary, the commissioner of the office of children and family services shall be responsible for the secular education of youth under the jurisdiction of the office and may contract for such education with the trustees or board of education of the school district wherein a facility for the residential care of such youth is located or with the board of cooperative educational services at which any such school district is a component district for special education programs, related services and career and technical education services and music, art and foreign language programs in accordance with subparagraph eight of paragraph (h) of subdivision four of section nineteen hundred fifty of this chapter. A youth attending a local public school while in residence at such facility shall be deemed a resident of the school district where his parent or guardian resides at the commencement of each school year for the purpose of determining which school district shall be responsible for the youth's tuition pursuant to section five hundred four of the executive law. * 6-b. The commissioner of mental health may meet his or her obligations under section 33.11 of the mental hygiene law by contracting pursuant to this subdivision for educational services for children between the ages of five and twenty-one who do not hold a high school diploma and who are hospitalized in hospitals operated by the office of mental health with the trustees or board of education of any school district for educational services or with a board of cooperative educational services for the provision of special education, related services and any alternative education programs approved by the commissioner pursuant to regulations promulgated under section one hundred twelve of this chapter where the board of cooperative educational services provides alternative education programs to component school districts to such children in accordance with their individualized education programs. The costs of such education shall not be a charge upon a school district pursuant to section 33.11 of the mental hygiene law.