; or (B) a current or recent diagnosis by a qualified mental health professional of 1 or more of the following disorders and any comparable disorders described in the most recent edition of the Diagnostic and Statistical Manual of Mental Disorders: (i) Schizophrenia or another psychotic disorder. (ii) Major depressive disorder. (iii) Any type of bipolar disorder. (iv) A neurodevelopmental disorder, dementia, or other cognitive disorder, including autism spectrum disorder. (v) Any disorder commonly characterized by breaks with reality or perceptions of reality. (vi) Any type of anxiety disorders. (vii) Trauma or stressor related disorder. (viii) Severe personality disorders. (9) Solitary confinement The term solitary confinement means confinement in a cell, other housing location, or other space that is not shared space conducive to meaningful group interaction, whether alone or with 1 or more other detained noncitizens. (10) Substantial and immediate threat The term substantial and immediate threat means a set of circumstances that require immediate action in order to combat a significant threat to the safety of a detained noncitizen, other detained noncitizens, staff, or the public. (11) U.S. Customs and Border Protection facility The term U.S. Customs and Border Protection facility means— (A) a detention facility owned and administered by U.S. Customs and Border Protection; or (B) a Federal, State, local, or private facility that has contracted (directly or indirectly) with U.S. Customs and Border Protection to detain noncitizens in Federal custody, and regardless of any time limits that exist for the duration of the detention in such a facility. (12) U.S. Immigration and Customs Enforcement facility The term U.S. Immigration and Customs Enforcement facility means— (A) a detention facility owned and administered by U.S. Immigration and Customs Enforcement