code: def test_disabled_docref(app):
      text = ":doc:`index`\n" ":doc:`!index`\n"
      doctree = restructuredtext.parse(app, text)
      assert_node(
          doctree,
          (
              [
                  nodes.paragraph,
                  (
                      [pending_xref, nodes.inline, "index"],
                      "\n",
                      [nodes.inline, "index"],
                  ),
              ],
          ),
      )
  
imports: from unittest import mock
  import pytest
  from docutils import nodes
  from docutils.nodes import definition, definition_list, definition_list_item, term
  from html5lib import HTMLParser
  from sphinx import addnodes
  from sphinx.addnodes import desc, desc_addname, desc_content, desc_name, desc_signature, glossary, index, pending_xref
  from sphinx.domains.std import StandardDomain
  from sphinx.testing import restructuredtext
  from sphinx.testing.util import assert_node
label_desc: Use image node_id 18 for calling a global function with example usage: test_disabled_docref(app) without return types