docstr: Iterates over RLDataset.
  
  Returns:
    Every experience of a sample from replay buffer.
docstr_tok: ["Iterates","over","RLDataset",".","Returns",":","Every","experience","of","a","sample","from","replay","buffer","."]
code: def __iter__(self):
      """Iterates over RLDataset.
  
      Returns:
        Every experience of a sample from replay buffer.
      """
      yield from self.buffer.sample()
  
file_path: FinRL/finrl/agents/portfolio_optimization/utils.py
imports: from __future__ import annotations
  from collections import deque
  import numpy
  from torch.utils.data.dataset import IterableDataset
label_desc: Use image node_id 2 for calling the RLDataset obj's underlying member method code with example usage: obj.__iter__() without return types