Requires the court to advise a defendant that if he or she is a noncitizen resident and he or she is convicted of a crime, whether by plea or trial, such conviction may result in his or her deportation; allows a withdrawal of a plea of guilty by a noncitizen resident if such noncitizen resident is threatened with deportation and such noncitizen resident is not so advised of such threat of deportation.