code: def __init__(
      self, base_iterable_func: Callable[[int, int], Iterator[T]]
  ):
      self.__base_iterable_func = base_iterable_func
      self.__rank = None
      self.__world_size = None
  
file_path: ptgnn/ptgnn/baseneuralmodel/utils/data.py
imports: import random
  from typing import Callable, Iterable, Iterator, List, Optional, TypeVar
label_desc: Use image node_id 1 to create a new ShardedLazyDataIterable object from inherited base classes: Iterable with example: obj = ShardedLazyDataIterable(base_iterable_func)