code: def unpatch_sklearn(name=None, global_unpatch=False):
      if global_unpatch:
          from sklearnex.glob.dispatcher import unpatch_sklearn_global
  
          unpatch_sklearn_global()
      from daal4py.sklearn import (
          unpatch_sklearn as unpatch_sklearn_orig,
      )
  
      if isinstance(name, list):
          for algorithm in name:
              unpatch_sklearn_orig(algorithm, get_map=get_patch_map)
      else:
          if _is_new_patching_available():
              for config in [
                  "set_config",
                  "get_config",
                  "config_context",
              ]:
                  unpatch_sklearn_orig(config, get_map=get_patch_map)
          unpatch_sklearn_orig(name, get_map=get_patch_map)
      if (
          os.environ.get("SKLEARNEX_PREVIEW")
          == "enabled_via_patch_sklearn"
      ):
          os.environ.pop("SKLEARNEX_PREVIEW")
  
file_path: scikit-learn-intelex/sklearnex/dispatcher.py
imports: import os
  import sys
  from functools import lru_cache
  from daal4py.sklearn._utils import daal_check_version, sklearn_check_version
label_desc: Use image node_id 6 for calling a global function with example usage: unpatch_sklearn(name, global_unpatch) without return types