class_docstr: Simply sampling from the replay buffer
class_docstr_tok: ["Simply","sampling","from","the","replay","buffer"]
code: def __iter__(self):
      for _ in range(self._num_batches):
          train_batch = self._replay_buffer.sample_transition_batch(
              batch_size=self._batch_size
          )
          if self._trainer_preprocessor:
              train_batch = self._trainer_preprocessor(train_batch)
          yield train_batch
  
file_path: ReAgent/reagent/gym/datasets/replay_buffer_dataset.py
imports: import logging
  from typing import Callable, Optional
  import torch
  from reagent.gym.agents.agent import Agent
  from reagent.gym.envs import EnvWrapper
  from reagent.gym.preprocessors import make_replay_buffer_inserter, make_replay_buffer_trainer_preprocessor
  from reagent.gym.types import Trajectory, Transition
  from reagent.replay_memory.circular_replay_buffer import ReplayBuffer
label_desc: Use image node_id 3 for calling the OfflineReplayBufferDataset obj's underlying member method code with example usage: obj.__iter__() without return types