(2) After the production of evidence required by paragraph (1), the defendant then has the burden of proof by a preponderance of the evidence that the defendant's constitutional rights were infringed in the separate proceeding at issue. If the separate conviction sought to be invalidated is based upon a plea of guilty or nolo contendere, the defendant shall provide the court with evidence of the prior plea, including the court docket, written waivers of constitutional rights executed by the defendant, and transcripts of the relevant court proceedings at the time of the entry of the defendant's plea.
These records shall be provided to the defendant without cost to him or her, when the defendant is represented by the public defender or counsel appointed pursuant to Section 987.2 of the Penal Code.