Cal. Penal Code § 1001.83
(b) The program described in this section may include, but not be limited to, all of the following components:
(d) On an accusatory pleading alleging the commission of a misdemeanor or felony offense, the court may, after considering the positions of the defense and prosecution, grant pretrial diversion to a defendant pursuant to this section if the defendant meets all of the following requirements:
(f)
(i) The defendant shall be advised that, regardless of the defendant’s completion of diversion, both of the following apply: