Every person who, while taking and subscribing to the oath or affirmation required by this chapter, states as true any material matter which he or she knows to be false, is guilty of perjury, and is punishable by imprisonment pursuant to subdivision (h) of Section 1170 of the Penal Code for two, three, or four years.