code: def test_object_description_no_typesetting_code(
      app, directive, no_index, no_index_entry, sig_f, sig_g, index_g
  ):
      text = (
          f".. {directive}:: {sig_f}\n"
          f"   :no-typesetting:\n"
          f".. {directive}:: {sig_g}\n"
          f"   :no-typesetting:\n"
          f".. code::\n"
          f"\n"
          f"   code\n"
      )
      doctree = restructuredtext.parse(app, text)
      # Note that all index nodes come before the targets
      assert_node(
          doctree,
          (
              addnodes.index,
              addnodes.index,
              nodes.target,
              nodes.target,
              nodes.literal_block,
          ),
      )
  
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 6 for calling a global function with example usage: test_object_description_no_typesetting_code(app, directive, no_index, no_index_entry, sig_f, sig_g, index_g) without return types