code: def test_method_setup_failure_no_teardown(pytester: Pytester) -> None:
      reprec = pytester.inline_runsource(
          """
          class TestMethodSetup(object):
              clslevel = []
              def setup_method(self, method):
                  self.clslevel.append(1)
                  0/0
  
              def teardown_method(self, method):
                  self.clslevel.append(2)
  
              def test_method(self):
                  pass
  
          def test_cleanup():
              assert TestMethodSetup.clslevel == [1]
      """
      )
      reprec.assertoutcome(failed=1, passed=1)
  
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 7 for calling a global function with example usage: test_method_setup_failure_no_teardown(pytester) without return types