code: def resolve_missing_references(app, doctree):
      for node in doctree.traverse(condition=pending_xref):
          missing_ref = node.get("reftarget", None)
          if missing_ref is not None and missing_ref in REFERENCE_MAP:
              real_ref = REFERENCE_MAP[missing_ref]
              text_to_render = real_ref.split(".")[-1]
              node["reftarget"] = real_ref
              text_node = next(
                  iter(node.traverse(lambda n: n.tagname == "#text"))
              )
              text_node.parent.replace(
                  text_node, Text(text_to_render, "")
              )
  
file_path: mlflow/docs/source/conf.py
imports: import sys
  import os
  from docutils.nodes import Text
  from sphinx.addnodes import pending_xref
  import mlflow
  import languagesections
  import mlflow.version
label_desc: Use image node_id 2 for calling a global function with example usage: resolve_missing_references(app, doctree) without return types