code: def purge_PandasCompats(app, env, docname):
      if not hasattr(env, "PandasCompat_all_pandas_compat"):
          return
  
      env.PandasCompat_all_pandas_compat = [
          PandasCompat
          for PandasCompat in env.PandasCompat_all_pandas_compat
          if PandasCompat["docname"] != docname
      ]
  
imports: from docutils import nodes
  from docutils.parsers.rst import Directive
  from sphinx.locale import get_translation
  from sphinx.util.docutils import SphinxDirective
label_desc: Use image node_id 3 for calling a global function with example usage: purge_PandasCompats(app, env, docname) without return types