ail or, unless a penalty falls to be imposed on the person under paragraph (a) of section 27 (1) of this Act, in custody for such period as it considers necessary for the purposes of this section, and request a health board, probation and welfare officer or other body or person, considered by the court to be appropriate, to???