code: def _simple_save(
      explainer: "Explainer", path: Union[str, os.PathLike]
  ) -> None:
      predictor = explainer.predictor  # type: ignore[attr-defined] # TODO: declare this in the Explainer interface
      explainer.predictor = None  # type: ignore[attr-defined]
      with open(Path(path, "explainer.dill"), "wb") as f:
          dill.dump(explainer, f, recurse=True)
      explainer.predictor = predictor
  
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 3 for calling a global function with example usage: _simple_save(explainer, path) without return types