def status_sps(status):
    """
    This method will return valid, invalid or undefined for a given result of
    models.PackageMember.sps_validation_status().

    status: Tuple(None, {})
    status: Tuple(True, {'is_valid': True, 'sps_errors': [], 'dtd_errors': []})
    status: Tuple(False, {'is_valid': True, 'sps_errors': [], 'dtd_errors': []})
    """

    if status[0] is True:
        return 'valid'

    if status[0] is False:
        return 'invalid'

    return 'undefined'