Any person who files or submits for filing a nomination paper or declaration of candidacy knowing that it or any part of it has been made falsely is punishable by a fine not exceeding one thousand dollars ($1,000) or by imprisonment pursuant to subdivision (h) of Section 1170 of the Penal Code for 16 months or two or three years or by both that fine and imprisonment.