Until judgment is given upon the return, the judge before whom the petitioner is brought may either commit the petitioner to the custody of the sheriff of the county, or place the petitioner in other custody as the petitioner's age and other circumstances require.
Minn. Stat. § 589.17
(9755) RL s 4589; 1985 c 265 art 9 s 1; 1986 c 444