def _valid_value(value):
    """
    this function is used to determine if the result of the consolidate function is valid. Valid types include int,
    float and lists of numbers.
    :param value: return value of the `consolidate` function
    :return: True if type is valid otherwise False
    """
    value_type = type(value)
    if value_type == int or value_type == float:
        return True
    elif value_type == list:
        for v in value:
            v_type = type(v)
            if v_type != int and v_type != float:
                return False
        return True
    else:
        return False