class_docstr: Type Protocol for detectors that have support for save/loading of online state.
  
  Used for typing save and load functionality in `alibi_detect.saving.saving`.
class_docstr_tok: ["Type","Protocol","for","detectors","that","have","support","for","save\/loading","of","online","state",".","Used","for","typing","save","and","load","functionality","in","`","alibi_detect.saving.saving","`","."]
code: def save_state(self, filepath: Union[str, os.PathLike]):
      ...
  
imports: from abc import ABC, abstractmethod
  import os
  import copy
  import json
  import numpy
  from typing import Dict, Any, Optional, Union
  from typing_extensions import Protocol, runtime_checkable
  from alibi_detect.version import __version__
label_desc: Use image node_id 1 for calling the StatefulDetectorOnline obj's underlying member method code with example usage: obj.save_state(filepath) without return types