def pre_release(self):
        """ Return true if version is a pre-release. """
        label = self.version_info.get('label', None)
        pre = self.version_info.get('pre', None)

        return True if (label is not None and pre is not None) else False
Return true if version is a pre-release.