code: def test_object_description_no_typesetting_noindex_orig(
      app, directive, no_index, no_index_entry, sig_f, sig_g, index_g
  ):
      if not no_index:
          pytest.skip(f"{directive} does not support :no-index: option")
      text = (
          f".. {directive}:: {sig_f}\n"
          f"   :no-index:\n"
          f".. {directive}:: {sig_g}\n"
      )
      doctree = restructuredtext.parse(app, text)
      assert_node(
          doctree,
          (
              addnodes.index,
              addnodes.desc,
              addnodes.index,
              addnodes.desc,
          ),
      )
      assert_node(doctree[2], addnodes.index, entries=[index_g])
  
file_path: sphinx/tests/test_directives/test_directives_no_typesetting.py
imports: import pytest
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.testing import restructuredtext
  from sphinx.testing.util import assert_node
label_desc: Use image node_id 3 for calling a global function with example usage: test_object_description_no_typesetting_noindex_orig(app, directive, no_index, no_index_entry, sig_f, sig_g, index_g) without return types