keras/src/legacy/preprocessing/image.py/BatchFromFilesMixin/labels
class BatchFromFilesMixin:    def labels(self):
        """Class labels of every observation."""
        raise NotImplementedError(
            "`labels` property method has not been implemented in {}.".format(
                type(self).__name__
            )
        )