If any person—
the inspectors may certify that fact in writing to the court.
The court may thereupon enquire into the case; and, after hearing any witnesses who may be produced against or on behalf of the alleged offender and after hearing any statement which may be offered in defence, the court may punish the offender in like manner as if he had been guilty of contempt of the court.