code: def ignore_internal_references(app, env, node, contnode):
      name = node.get("reftarget", None)
      if name == "cudf.core.index.GenericIndex":
          # We don't exposed docs for `cudf.core.index.GenericIndex`
          # hence we would want the docstring & mypy references to
          # use `cudf.Index`
          node["reftarget"] = "cudf.Index"
          return contnode
      return None
  
imports: import os
  import sys
  from docutils.nodes import Text
  from sphinx.addnodes import pending_xref
label_desc: Use image node_id 2 for calling a global function with example usage: ignore_internal_references(app, env, node, contnode) and returns: None, contnode