def labels(self):
        """
        Return the unique labels assigned to the documents.
        """
        return [
            name for name in os.listdir(self.root)
            if os.path.isdir(os.path.join(self.root, name))
        ]
def labels ( self ) : return [ name for name in os . listdir ( self . root ) if os . path . isdir ( os . path . join ( self . root , name ) ) ]
Return the unique labels assigned to the documents.