code: def __next__(self):
      try:
          batch = next(self.data_iter)
      except StopIteration:
          self.data_iter = iter(self.loader)
          batch = next(self.data_iter)
      return batch
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/runtime/dataloader.py
imports: import torch
  from torch.utils.data import DataLoader, RandomSampler
  from torch.utils.data.distributed import DistributedSampler
label_desc: Use image node_id 3 for calling the RepeatingLoader obj's underlying member method code with example usage: obj.__next__() and returns: batch