Following the arrest and detention of any person for an offense against the laws of this state, either the defendant or the state may, by verified affidavit filed with the court having jurisdiction, establish that the defendant is a person who has been identified as intellectually disabled and has received or is presently receiving services through the Department of Mental Health, a program certified by the Department of Mental Health, or the Department of Education.
Ala. Code § 15-24-3 (1975)