For immigration purposes, the term “conviction” means a formal judgment of guilt of the alien entered by a court or, if adjudication of guilt has been withheld, where: (i) a judge or a jury has found the alien guilty or the alien has entered a plea of guilty or nolo contendere or has admitted sufficient facts to warrant a finding of guilt, and (ii) the judge has ordered some form of punishment, penalty, or restraint on the alien’s liberty to be imposed. This means deferred adjudication is a conviction for immigration purposes. Similarly, a diversion program may be a conviction if a formal judgment of guilt has been entered by the court.