code: def purge_pdvega_plot_setup(app, env, docname):
      if not hasattr(env, "pdvega_plot_setup"):
          return
      env.pdvega_plot_setup = [
          item
          for item in env.pdvega_plot_setup
          if item["docname"] != docname
      ]
  
imports: import os
  import json
  import warnings
  import jinja2
  from docutils import nodes
  from docutils.parsers.rst import Directive
  from docutils.parsers.rst.directives import flag, unchanged
  from sphinx.locale import _
  from pdvega import Axes
  from .utils import exec_then_eval
label_desc: Use image node_id 1 for calling a global function with example usage: purge_pdvega_plot_setup(app, env, docname) without return types