class_docstr: Flattened access to a collection of datasets.
class_docstr_tok: ["Flattened","access","to","a","collection","of","datasets","."]
code: def __iter__(self):
      if self.interleave:
          yield from self.iter_interleaved()
      else:
          yield from self.iter_sequential()
  
file_path: gluonts/src/gluonts/dataset/__init__.py
imports: from dataclasses import dataclass
  from pathlib import Path
  from typing import Any, Dict, Iterator, List, Optional
  from typing_extensions import Protocol, runtime_checkable
  from gluonts.itertools import roundrobin
label_desc: Use image node_id 3 for calling the DatasetCollection obj's underlying member method code with example usage: obj.__iter__() without return types