Every village shall be allowed the use of the jail of the county in which it is located, for the confinement of all persons sentenced to imprisonment under the ordinances of the village, or under any of the provisions of this act; and the sheriff, or other keeper of the jail, or other place of confinement or imprisonment, shall receive and safely keep any person committed until lawfully discharged. The expense of receiving and keeping a prisoner shall be borne by the county if the imprisonment is for a violation of a penal law of this state and by the village if the imprisonment is for a violation of a village ordinance.
MCL 66.8