; (bb) the primary caregiver is therefore unable to care for the child any longer; and (cc) other family members or caregivers are unable to care for the child, such that the child is at risk of being placed in the foster care system; and . (b) Ineligibility and procedure Section 3582 of title 18, United States Code, is amended by adding at the end the following: (e) Ineligibility No prisoner is eligible for a modification of sentence under subsection (c)(1)(A) if the prisoner is serving a sentence of imprisonment for any of the following offenses: (1) A Federal conviction for homicide in which the prisoner was proven beyond a reasonable doubt to have had the intent to cause death and death resulted. (2) A Federal crime of terrorism, as defined under section 2332b(g)(5). (3) A Federal sex offense, as described in section 111 of the Sex Offender Registration and Notification Act ( 42 U.S.C. 16911 ). (f) Requirements for certain motions If the prisoner makes a motion under subsection (c)(1)(A) on the basis of an extraordinary health condition or the death or incapacitation of the primary caregiver of the prisoner’s minor child, that prisoner shall provide documentation, as the case may be— (1) setting forth a relevant diagnosis regarding the extraordinary health condition; or (2) that— (A) the requirements of subsection (c)(1)(A)(ii)(III) are met; and (B) the prisoner’s release— (i) is in the best interest of the child