def default_import_state(**overrides):
    """Return an ImportState with defaults to the initial import state."""
    state = {
            'modules': {},
            'meta_path': [],
            'path': site.getsitepackages(),
            'path_hooks': [],
            'path_importer_cache': {},
            }
    state.update(overrides)
    return ImportState(**state)
Return an ImportState with defaults to the initial import state.
recipes/Python/578107_Tracking_Manipulating_PythImport/recipe-578107.py