code: def __getitem__(self, idx):
      batch_x = self.x[
          idx * self.batch_size : (idx + 1) * self.batch_size
      ]
      batch_y = self.y[
          idx * self.batch_size : (idx + 1) * self.batch_size
      ]
  
      return batch_x, batch_y
  
imports: from tensorflow.keras.utils import Sequence
label_desc: Use image node_id 3 for calling the SequenceGenerator obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: batch_x,  batch_y