Judicial punishment of mandatory custody either in prison or in some other closed therapeutic and/or educational institution.