Where in any case the Court could have dealt with,—
(a) an accused person under section 401 or under the provisions of the Probation of Offenders Act, 1958; or
(b) a youthful offender under the Juvenile Justice (Care and Protection of Children) Act, 2015 or any other law for the time being in force for the treatment, training or rehabilitation of youthful offenders,
but has not done so, it shall record in its judgment the special reasons for not having done so.