Any attorney who shall bring a fictitious suit as an experiment to get an opinion of the court, or who shall file any fictitious pleading in a cause for such a purpose, or shall make statements in pleading presenting a state of case which he knows to be groundless and false, for the purpose of securing a delay of the trial of the cause, shall be held guilty of a contempt; and the court, of its own motion, or at the instance of any party, will direct an inquiry to ascertain the fact.