code: def __init__(
      self,
      base_iterable_func: Callable[[], Iterator[T]],
      shuffle: bool = False,
  ):
      self.__base_iterable_func = base_iterable_func
      self.__elements: List[T] = []
      self.__use_cache: bool = False
      self.__shuffle = shuffle
  
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 MemorizedDataIterable object from inherited base classes: Iterable with example: obj = MemorizedDataIterable(base_iterable_func, shuffle)