def copy(self):
        """Return a shallow copy of the import state."""
        return type(self)(self.modules.copy(), self.meta_path[:],
                          self.path[:], self.path_hooks[:],
                          self.path_importer_cache.copy())
Return a shallow copy of the import state.
recipes/Python/578107_Tracking_Manipulating_PythImport/recipe-578107.py