def __len__(self):
    '\n        Number of batches for generator.\n        '
    return len(self.groups)
Number of batches for generator.
def __len__(self):
    '\n        \n        '
    return len(self.groups)