code: def test_inline_run_test_module_not_cleaned_up(
      self, pytester: Pytester
  ) -> None:
      test_mod = pytester.makepyfile("def test_foo(): assert True")
      result = pytester.inline_run(str(test_mod))
      assert result.ret == ExitCode.OK
      # rewrite module, now test should fail if module was re-imported
      test_mod.write_text(
          "def test_foo(): assert False", encoding="utf-8"
      )
      result2 = pytester.inline_run(str(test_mod))
      assert result2.ret == ExitCode.TESTS_FAILED
  
imports: import os
  import subprocess
  import sys
  import time
  from types import ModuleType
  from typing import List
  import _pytest.pytester
  import pytest
  from _pytest.config import ExitCode
  from _pytest.config import PytestPluginManager
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import HookRecorder
  from _pytest.pytester import LineMatcher
  from _pytest.pytester import Pytester
  from _pytest.pytester import SysModulesSnapshot
  from _pytest.pytester import SysPathsSnapshot
label_desc: Use image node_id 1 for calling the TestInlineRunModulesCleanup obj's underlying member method code with example usage: obj.test_inline_run_test_module_not_cleaned_up(pytester) without return types