code: def test_setup_fails_again_on_all_tests(pytester: Pytester) -> None:
      p = pytester.makepyfile(
          """
          import pytest
          def setup_module(mod):
              raise ValueError(42)
          def test_function1():
              pass
          def test_function2():
              pass
      """
      )
      reprec = pytester.inline_run(p)
      reprec.assertoutcome(failed=2)
  
file_path: pytest/testing/test_runner_xunit.py
imports: from typing import List
  import pytest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 10 for calling a global function with example usage: test_setup_fails_again_on_all_tests(pytester) without return types