The court, pending adjournment of the trial of a woman defendant, or after conviction pending investigation before imposition of sentence, may, in its discretion, parole in the custody of a probation officer any woman arraigned for any offense other than a felony; or may, subject to release on bail, if before conviction, commit her temporarily to an institution for the reception of females which in its judgment is suitable, but no such commitment shall be for a period longer than four days, except with the consent of the defendant.
N.Y. New York City Criminal Court Law § 87