def _is_list_or_tuple_and_equal(data, length, err_info):
    if (not (_is_list_or_tuple_(data) and (len(data) == length))):
        raise ValueError(err_info)
def _is_list_or_tuple_and_equal(data, length, err_info):
    if (not (_is_list_or_tuple_(data) and (len(data) == length))):
        raise ValueError(err_info)