Any witness who refuses to obey a summons of the commissioner, or the commissioner's deputies or assistants, or who refuses to be sworn or testify, or who disobeys any lawful order of the commissioner, or the commissioner's deputies or assistants, in relation to any investigation instituted by the commissioner or such deputies or assistants, or who fails or refuses to produce any book, paper or document, or other matter touching any matter under investigation or examination, or who is guilty of any contemptuous act, after being summoned to appear before either of them, to give testimony in relation to any matter under examination or investigation, may be punished as for contempt of court, and for this purpose application may be made to any court of record within whose jurisdiction the contempt in question took place, and for which purpose the courts are given jurisdiction.