code: def test_doctest_items(pytester: Pytester) -> None:
      pytester.makepyfile(
          '''
          def foo():
              """
              >>> 1 + 1
              2
              """
      '''
      )
      pytester.maketxtfile(
          """
          >>> 1 + 1
          2
      """
      )
      result = pytester.runpytest(
          "--fixtures-per-test",
          "--doctest-modules",
          "--doctest-glob=*.txt",
          "-v",
      )
      assert result.ret == 0
  
      result.stdout.fnmatch_lines(["*collected 2 items*"])
  
file_path: pytest/testing/python/show_fixtures_per_test.py
imports: from _pytest.pytester import Pytester
label_desc: Use image node_id 6 for calling a global function with example usage: test_doctest_items(pytester) without return types