Penal Code section 1473.7 became effective on January 1, 2017 and states, in pertinent part, as follows:
(a) A person no longer imprisoned or restrained may prosecute a motion to vacate a conviction or sentence for either of the following reasons:
(1) The conviction or sentence is legally invalid due to a prejudicial error damaging the moving party's ability to meaningfully understand, defend against, or knowingly accept the actual or potential adverse immigration consequences of a plea of guilty or nolo contendere.
(2) Newly discovered evidence of actual innocence exists that requires vacation of the conviction or sentence as a matter of law or in the interests of justice.
(b) A motion pursuant to paragraph (1) of subdivision (a) shall be filed with reasonable diligence after the later of the following:
(1) The date the moving party receives a notice to appear in immigration court or other notice from immigration authorities that asserts the conviction or sentence as a basis for removal.
(2) The date a removal order against the moving party, based on the existence of the conviction or sentence, becomes final.
(c) A motion pursuant to paragraph (2) of subdivision (a) shall be filed without undue delay from the date the moving party discovered, or could have discovered with the exercise of due diligence, the evidence that provides a basis for relief under this section.