Any person having the custody of the papers necessary for the preparation of the statements provided for in article 10 of the said convention with respect to reports of infractions, by officers commanding vessels of war or vessels especially commissioned, who shall refuse to exhibit them or shall violently resist persons having authority according to article 10 of said convention to draw up statements of facts in the exercise of their functions, shall be guilty of a misdemeanor, and on conviction thereof shall be liable to imprisonment not exceeding two years, or to a fine not exceeding $5,000, or to both fine and imprisonment, at the discretion of the court.