(1) Prior to acceptance of a plea of guilty or nolo contendere to any offense punishable as a crime under state law, except offenses designated as infractions under state law, the court shall administer the following advisement on the record to the defendant:
|IF YOU ARE NOT A UNITED STATES CITIZEN, YOU ARE HEREBY ADVISED THAT CONVICTION OF THE OFFENSE FOR WHICH YOU HAVE BEEN CHARGED MAY HAVE THE CONSEQUENCES OF REMOVAL FROM THE UNITED STATES, OR DENIAL OF NATURALIZATION PURSUANT TO THE LAWS OF THE UNITED STATES.|
(2) Upon request, the court shall allow the defendant additional time to consider the appropriateness of the plea in light of the advisement as described in this section. If, on or after July 20, 2002, the court fails to advise the defendant as required by this section and the defendant shows that conviction of the offense to which the defendant pleaded guilty or nolo contendere may have the consequences for the defendant of removal from the United States, or denial of naturalization pursuant to the laws of the United States, the court, on the defendant's motion, shall vacate the judgment and permit the defendant to withdraw the plea of guilty or nolo contendere and enter a plea of not guilty. Absent a record that the court provided the advisement required by this section, the defendant shall be presumed not to have received the required advisement.
(3) With respect to pleas accepted prior to July 20, 2002, it is not the intent of the Legislature that a court's failure to provide the advisement required by subsection (1) of this section should require the vacation of judgment and withdrawal of the plea or constitute grounds for finding a prior conviction invalid. Nothing in this section, however, shall be deemed to inhibit a court, in the sound exercise of its discretion, from vacating a judgment and permitting a defendant to withdraw a plea.