Whenever the court, before or during the hearing on the petition, is of the opinion that the minor is mentally ill or if the court is in doubt concerning the mental health of any such person, the court may order that such person be held temporarily in the psychopathic ward of the county hospital or hospital whose services have been approved and/or contracted for by the department of health of the county, for observation and recommendation concerning the future care, supervision, and treatment of such person.
(Added by Stats. 1976, Ch. 1068.)