code: def test_method_setup_uses_fresh_instances(
      pytester: Pytester,
  ) -> None:
      reprec = pytester.inline_runsource(
          """
          class TestSelfState1(object):
              memory = []
              def test_hello(self):
                  self.memory.append(self)
  
              def test_afterhello(self):
                  assert self != self.memory[0]
      """
      )
      reprec.assertoutcome(passed=2, failed=0)
  
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 8 for calling a global function with example usage: test_method_setup_uses_fresh_instances(pytester) without return types