A person shall not be convicted of a violation of any provision of this chapter if such person establishes a guaranty, which is signed by the person that resides or is lawfully engaged in business in the state, by or for whom the canned fruit, including olives, in question were originally packed, to the effect that the product in question complies in all respects with the provisions of this chapter. Such guaranty, to afford protection, shall contain the name and address of the party that made such guaranty. Such guarantor shall be amenable to all of the prosecutions, fines, and penalties which are provided for by this chapter.