code: def _sanitize_registry(self):
      registry.mapping["builder_name_mapping"].pop("always_one", None)
      registry.mapping["model_name_mapping"].pop("simple", None)
      registry.mapping["state"] = {}
  
imports: import contextlib
  import io
  import os
  import sys
  import unittest
  from mmf.common.registry import registry
  from mmf.utils.configuration import get_mmf_env
  from mmf.utils.env import import_user_module, setup_imports
  from mmf.utils.general import get_mmf_root
  from mmf_cli.run import run
  from tests.test_utils import make_temp_dir, search_log
label_desc: Use image node_id 2 for calling the TestUtilsEnvE2E obj's underlying member method code with example usage: obj._sanitize_registry() without return types