code: def _save_Shap(
      explainer: Union["KernelShap", "TreeShap"],
      path: Union[str, os.PathLike],
  ) -> None:
      # set the internal explainer object to avoid saving it. The internal explainer
      # object is recreated when in the `reset_predictor` function call.
      _explainer = explainer._explainer
      explainer._explainer = None
  
      # simple save which does not save the predictor
      _simple_save(explainer, path)
  
      # reset the internal explainer object
      explainer._explainer = _explainer
  
imports: import copy
  import json
  import numbers
  import os
  from pathlib import Path
  import sys
  from typing import Callable, TYPE_CHECKING, Union
  import warnings
  import dill
  import numpy
  from alibi.version import __version__
label_desc: Use image node_id 11 for calling a global function with example usage: _save_Shap(explainer, path) without return types