In cases where any party is held under illegal restraint or custody, or any other person is entitled to the restraint or custody of such party, the judge or court may order such party to be committed to the restraint or custody of such person as is by law entitled thereto.
History —Code Crim. Proc., 1935, § 488.