That every board of public park commissioners in this state shall have full power and authority to enter into an agreement with the legislative authorities of any city, town or village in the county in which the park system under the control of such board of public park commissioners may be situated, or with any authorized officer thereof in behalf of such city, town or village which now has or which may hereafter have a house of correction, to receive and keep in said house of correction any person or persons who may be sentenced or committed thereto by any court in such county for the violation of any ordinance of said board of public park commissioners, or failure to pay the fine imposed for such violation.
70 ILCS 1320/1