@property
    def is_empty(self):
        if self.is_list:
            return len(self.list_or_slice) == 0
        else:
            start, stop, step = self.slice_to_numerical_args(
                self.list_or_slice, self.original_num_examples)
            return stop - start == 0
Whether this subset is empty.
dataset/ETHPy150Open mila-udem/fuel/fuel/utils/__init__.py/Subset.is_empty