code: def test_remove_added(self) -> None:
      original = dict(sys.modules)
      assert self.key not in sys.modules
      snapshot = SysModulesSnapshot()
      sys.modules[self.key] = ModuleType("something")
      assert self.key in sys.modules
      snapshot.restore()
      assert sys.modules == original
  
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 TestSysModulesSnapshot obj's underlying member method code with example usage: obj.test_remove_added() without return types