(a)
The following provisions shall apply to those elections where candidates for one or more of the following offices are voted upon: President, Vice President, United States Senator, and United States Representative.
(b)
Upon the completion of the counting of the votes as provided in Article 4 (commencing with Section 15640) of Chapter 12 of Division 15, all ballot cards shall be arranged by precincts and shall be kept by the elections official for 22 months from the date of the election or so long thereafter as any contest involving the vote at the election remains undetermined.
(c)
Notwithstanding any other provision of this code, the final disposition of all voted ballot cards shall be determined by the elections official.
(d)
Sealed ballot containers may be opened if the elections official determines it is necessary in a shredding or recycling process. Nothing in this section shall be construed to allow packages or containers to be opened except for purposes specified herein. The packages or containers shall otherwise remain unopened until the ballots are destroyed or recycled.