def METHOD_NAME(self):
    sys.path[:] = self.path
    sys.meta_path[:] = self.meta_path
    sys.path_hooks[:] = self.path_hooks
    sys.path_importer_cache.clear()
    for fullname in self.tracker.imports:
        if fullname in sys.modules:
            del sys.modules[fullname]