def __len__(self): return get_size(self.y)
def group_index(iter): for data in iter: size = get_size(data["x"]) for i in range(size): yield size