code: def test_capturing(pytester: Pytester) -> None:
      p = pytester.makepyfile(
          """
          import pytest, sys
          @pytest.fixture()
          def one():
              sys.stdout.write('this should be captured')
              sys.stderr.write('this should also be captured')
          @pytest.fixture()
          def two(one):
              assert 0
          def test_capturing(two):
              pass
      """
      )
  
      result = pytester.runpytest("--setup-only", p)
      result.stdout.fnmatch_lines(
          ["this should be captured", "this should also be captured"]
      )
  
file_path: pytest/testing/test_setuponly.py
imports: import sys
  import pytest
  from _pytest.config import ExitCode
  from _pytest.pytester import Pytester
label_desc: Use image node_id 10 for calling a global function with example usage: test_capturing(pytester) without return types