examples/research_projects/distillation/grouped_batch_sampler.py/GroupedBatchSampler/__len__
class GroupedBatchSampler:    def __len__(self):
        """
        Return the number of mini-batches rather than the number of samples.
        """
        return (len(self.sampler) + self.batch_size - 1) // self.batch_size