code: def test_missing_reference_conditional_pending_xref(app, warning):
      def missing_reference(_app, _env, _node, contnode):
          return contnode
  
      warning.truncate(0)
      app.connect("missing-reference", missing_reference)
      app.build()
      assert warning.getvalue() == ""
  
      content = (app.outdir / "index.html").read_text(encoding="utf8")
      assert (
          '<span class="n"><span class="pre">Age</span></span>'
          in content
      )
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING
  import pytest
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.addnodes import SIG_ELEMENTS
  from sphinx.testing.util import assert_node
  from sphinx.transforms.post_transforms import SigElementFallbackTransform
  from sphinx.util.docutils import new_document
label_desc: Use image node_id 3 for calling a global function with example usage: test_missing_reference_conditional_pending_xref(app, warning) and returns: contnode