code: def merge_PandasCompats(app, env, docnames, other):
      if not hasattr(env, "PandasCompat_all_pandas_compat"):
          env.PandasCompat_all_pandas_compat = []
      if hasattr(other, "PandasCompat_all_pandas_compat"):
          env.PandasCompat_all_pandas_compat.extend(
              other.PandasCompat_all_pandas_compat
          )
  
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 4 for calling a global function with example usage: merge_PandasCompats(app, env, docnames, other) without return types