If any owner, operator or agent refuses to permit the State Mine Inspector to make an inspection or to furnish the necessary facilities for making such examination and inspection, the State Mine Inspector shall file his affidavit, setting forth such refusal, with the judge of the circuit court in the county in which such mine is situated, and obtain an order on such owner, agent or operator so refusing as aforesaid, commanding him to permit and furnish such necessary facilities for the inspection of such coal mine, or be adjudged to stand in contempt of court and punished accordingly.
225 ILCS 705/4.12