code: def __len__(self):
      import numpy as np
  
      return int(np.ceil(len(self.x) / float(self.batch_size)))
  
imports: from tensorflow.keras.utils import Sequence
label_desc: Use image node_id 2 for calling the SequenceGenerator obj's underlying member method code with example usage: obj.__len__() and returns: int