code: def test_trailing_underscore(make_app, apidoc):
      outdir = apidoc.outdir
      assert (outdir / "conf.py").is_file()
      assert (outdir / "package_.rst").is_file()
  
      app = make_app("text", srcdir=outdir)
      app.build()
      print(app._status.getvalue())
      print(app._warning.getvalue())
  
      builddir = outdir / "_build" / "text"
      with open(builddir / "package_.txt", encoding="utf-8") as f:
          rst = f.read()
          assert "package_ package\n" in rst
          assert "package_.module_ module\n" in rst
  
imports: import os.path
  from collections import namedtuple
  import pytest
  import sphinx.ext.apidoc
  from sphinx.ext.apidoc import main
label_desc: Use image node_id 8 for calling a global function with example usage: test_trailing_underscore(make_app, apidoc) without return types