code: def __iter__(self):
      for i, (x, y) in enumerate(self._gen):
          if i == self.n_samples:
              break
          yield x, y
  
file_path: river/river/evaluate/gen.py
imports: from __future__ import annotations
  from river import datasets
label_desc: Use image node_id 2 for calling the WrappedGenerator obj's underlying member method code with example usage: obj.__iter__() without return types