code: def test_fixtures_in_conftest(pytester: Pytester) -> None:
      pytester.makeconftest(
          '''
          import pytest
          @pytest.fixture
          def arg1():
              """arg1 docstring"""
          @pytest.fixture
          def arg2():
              """arg2 docstring"""
          @pytest.fixture
          def arg3(arg1, arg2):
              """arg3
              docstring
              """
      '''
      )
      p = pytester.makepyfile(
          """
          def test_arg2(arg2):
              pass
          def test_arg3(arg3):
              pass
      """
      )
      result = pytester.runpytest("--fixtures-per-test", p)
      assert result.ret == 0
  
      result.stdout.fnmatch_lines(
          [
              "*fixtures used by test_arg2*",
              "*(test_fixtures_in_conftest.py:2)*",
              "arg2 -- conftest.py:6",
              "    arg2 docstring",
              "*fixtures used by test_arg3*",
              "*(test_fixtures_in_conftest.py:4)*",
              "arg1 -- conftest.py:3",
              "    arg1 docstring",
              "arg2 -- conftest.py:6",
              "    arg2 docstring",
              "arg3 -- conftest.py:9",
              "    arg3",
          ]
      )
  
file_path: pytest/testing/python/show_fixtures_per_test.py
imports: from _pytest.pytester import Pytester
label_desc: Use image node_id 3 for calling a global function with example usage: test_fixtures_in_conftest(pytester) without return types