class_docstr: This buffer implements reservoir sampling.
  
  The algorithm has been described by Jeffrey S. Vitter in "Random sampling
  with a reservoir".
docstr: Returns all local state.
  
  Returns:
      The serializable local state.
docstr_tok: ["Returns","all","local","state",".","Returns",":","The","serializable","local","state","."]
code: def get_state(self) -> Dict[str, Any]:
      """Returns all local state.
  
      Returns:
          The serializable local state.
      """
      parent = ReplayBuffer.get_state(self)
      parent.update(self.stats())
      return parent
  
file_path: ray/python/ray/rllib/utils/replay_buffers/reservoir_replay_buffer.py
imports: from typing import Any, Dict
  import random
  import ray
  import psutil
  from ray.rllib.utils.annotations import ExperimentalAPI, override
  from ray.rllib.utils.replay_buffers.replay_buffer import ReplayBuffer, warn_replay_capacity
  from ray.rllib.utils.typing import SampleBatchType
label_desc: Use image node_id 4 for calling the ReservoirReplayBuffer obj's underlying member method code with example usage: obj.get_state() and returns: parent