A. If the court or the adult or juvenile probation department places a sex offender in a sex offender treatment program, the treatment provider or, if the treatment is provided by the state department of corrections or the department of juvenile corrections, the state department of corrections or the department of juvenile corrections shall place the offender in a treatment program with similar offenders of a similar age and developmental maturity level, if group treatment is prescribed by the treatment provider.
B. A mental health treatment program that a sex offender is required to participate in by a court, an adult or juvenile probation department, the state department of corrections or the department of juvenile corrections:
1. Shall comply with the professional code of ethics from the association for the treatment of sexual abusers.
2. Shall not include the use of images that are in violation of title 13, chapters 35 and 35.1.
C. For the purposes of this section, “sex offender” means a person who is twenty-one years of age or younger who is adjudicated delinquent for or convicted of an offense that involves a violation of title 13, chapter 14 or 35.1 and that does not involve the discharge, use or threatening exhibition of a deadly weapon or dangerous instrument.