class_docstr: Simple replay buffer that operates over batches.
code: def add_batch(self, sample_batch: SampleBatchType) -> None:
      warn_replay_capacity(item=sample_batch, num_items=self.num_slots)
      if self.num_slots > 0:
          if len(self.replay_batches) < self.num_slots:
              self.replay_batches.append(sample_batch)
          else:
              self.replay_batches[self.replay_index] = sample_batch
              self.replay_index += 1
              self.replay_index %= self.num_slots
  
file_path: ray/python/ray/rllib/execution/replay_ops.py
imports: from typing import Optional
  import random
  from ray.rllib.utils.replay_buffers.replay_buffer import warn_replay_capacity
  from ray.rllib.utils.typing import SampleBatchType
label_desc: Use image node_id 2 for calling the SimpleReplayBuffer obj's underlying member method code with example usage: obj.add_batch(sample_batch) without return types