If the court is unable to obtain satisfactory information, or to satisfactorily determine the questions involved or to furnish proper relief, it shall notify the district attorney, who may institute proceedings under sections one to thirty-four, inclusive, or such other proceedings as the case may require. The provisions of said sections shall apply to all proceedings under the four preceding sections so far as appropriate.
Massachusetts Legal Code