The inspectors of any such house of correction may enter into an agreement with any officer of the United States authorized therefor to receive and keep in such house of correction any person sentenced thereto, or ordered to be imprisoned therein, by any court of the United States or other federal officer, until discharged by law.
65 ILCS 5/11-4-14