docstr: Save a detector's state to disk in order to generate a checkpoint.
  
  Parameters
  ----------
  filepath
      The directory to save state to.
docstr_tok: ["Save","a","detector","'s","state","to","disk","in","order","to","generate","a","checkpoint",".","Parameters","--","--","--","--","--","filepath","The","directory","to","save","state","to","."]
code: def save_state(self, filepath: Union[str, os.PathLike]):
      """
      Save a detector's state to disk in order to generate a checkpoint.
  
      Parameters
      ----------
      filepath
          The directory to save state to.
      """
      self._detector.save_state(filepath)
  
file_path: alibi-detect/alibi_detect/cd/mmd_online.py
imports: import os
  import numpy
  from typing import Any, Callable, Dict, Optional, Union
  from alibi_detect.utils.frameworks import has_pytorch, has_tensorflow, BackendValidator, Framework
  from alibi_detect.base import DriftConfigMixin
  from alibi_detect.utils._types import TorchDeviceType
label_desc: Use image node_id 8 for calling the MMDDriftOnline obj's underlying member method code with example usage: obj.save_state(filepath) without return types