; (ii) direct assistance in applying for and accessing such services; (iii) conducting library staff training on relevant topics within the social workers’ and social work interns’ competence and scope of practice; and (iv) other duties as may be determined by local conditions, the institution, and the participating library. (B) Code of ethics A licensed professional social worker or intern placed at the library pursuant to subsection (d) shall be required to adhere to the social work profession’s code of ethics as set forth by the National Association for Social Workers. (C) Limitations A licensed professional social worker or intern placed at a library pursuant to subsection (d)— (i) shall not be required to report an alien who is not in lawful immigration status to U.S. Immigration and Customs Enforcement and may provide such alien with appropriate professional services; and (ii) shall not be required to provide direct healthcare and mental health services to library patrons, such as the administration of diagnostic medical tests. (3) Duties of libraries A library that enters into a partnership with an institution of higher education as described in paragraph (1)(D)— (A) shall— (i) provide social workers and interns placed at the library with general support, including access to resources (such as office space, technology, and staff time) to ensure such social workers and interns are able to effectively carry out their responsibilities; (ii) provide input regarding the services and programming offered by such social workers and interns; and (iii) adhere to the American Library Association’s code of ethics