code: def iter_all(self):
      for elem in self.data:
          yield elem
  
imports: import math
  import numpy
  import os
  from typing import Generator, Union, Sequence
  import torch
  import torch.utils.data.dataset
label_desc: Use image node_id 3 for calling the InMemoryDataCache obj's underlying member method code with example usage: obj.iter_all() without return types