code: def test_method_setup(pytester: Pytester) -> None:
      reprec = pytester.inline_runsource(
          """
          class TestSetupMethod(object):
              def setup_method(self, meth):
                  self.methsetup = meth
              def teardown_method(self, meth):
                  del self.methsetup
  
              def test_some(self):
                  assert self.methsetup == self.test_some
  
              def test_other(self):
                  assert self.methsetup == self.test_other
      """
      )
      reprec.assertoutcome(passed=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 6 for calling a global function with example usage: test_method_setup(pytester) without return types