docstr: Saves the experiment to a pickle file.
  
  The experiment is saved using cloudpickle to deal with lambda
  functions. The data or test data is NOT saved with the experiment
  and will need to be specified again when loading using
  ``load_experiment``.
  
  
  path_or_file: str or BinaryIO (file pointer)
      The path/file pointer to save the experiment to.
  
  
  **cloudpickle_kwargs:
      Kwargs to pass to the ``cloudpickle.dump`` call.
  
  
  Returns:
      None
docstr_tok: ["Saves","the","experiment","to","a","pickle","file",".","The","experiment","is","saved","using","cloudpickle","to","deal","with","lambda","functions",".","The","data","or","test","data","is","NOT","saved","with","the","experiment","and","will","need","to","be","specified","again","when","loading","using","``","load_experiment","``",".","path_or_file",":","str","or","BinaryIO","(","file","pointer",")","The","path\/file","pointer","to","save","the","experiment","to",".","*","*","cloudpickle_kwargs",":","Kwargs","to","pass","to","the","``","cloudpickle.dump","``","call",".","Returns",":","None"]
code: def save_experiment(
      self,
      path_or_file: Union[str, os.PathLike, BinaryIO],
      **cloudpickle_kwargs,
  ) -> None:
      """
      Saves the experiment to a pickle file.
  
      The experiment is saved using cloudpickle to deal with lambda
      functions. The data or test data is NOT saved with the experiment
      and will need to be specified again when loading using
      ``load_experiment``.
  
  
      path_or_file: str or BinaryIO (file pointer)
          The path/file pointer to save the experiment to.
  
  
      **cloudpickle_kwargs:
          Kwargs to pass to the ``cloudpickle.dump`` call.
  
  
      Returns:
          None
  
      """
      try:
          cloudpickle.dump(self, path_or_file, **cloudpickle_kwargs)
      except TypeError:
          with open(path_or_file, mode="wb") as f:
              cloudpickle.dump(self, f, **cloudpickle_kwargs)
  
imports: import inspect
  import os
  import warnings
  from collections import defaultdict
  from typing import Any, BinaryIO, Callable, Dict, Optional, Union
  import cloudpickle
  import pandas
  import pycaret.internal.patches.sklearn
  import pycaret.internal.patches.yellowbrick
  import pycaret.internal.persistence
  from pycaret.internal.logging import get_logger
  from pycaret.utils.constants import DATAFRAME_LIKE
  from pycaret.utils.generic import LazyExperimentMapping
label_desc: Use image node_id 22 for calling the _PyCaretExperiment obj's underlying member method code with example usage: obj.save_experiment(path_or_file) without return types