code: def __init__(self, generator_func):
      self.generator_func = generator_func
  
imports: from torch.utils.data import IterableDataset
label_desc: Use image node_id 1 to create a new TorchIterableDataset object from inherited base classes: IterableDataset with example: obj = TorchIterableDataset(generator_func)