It shall be lawful for the court before whom the person shall be convicted for a violation of the provisions of the section 18, to require of the person satisfactory security that he or she will, within a reasonable time, to be named by the court, transport the person out of the state, or indemnify the county for all charges and expenses which may have been, or may be incurred in the support of the poor person. If the person shall neglect or refuse to give the security when required, it shall be the duty of the court to commit him or her to the county jail for a term not exceeding 3 months.
MCL 402.19