def _validate_route_example(x, fuel_costs, time_costs):
    for i in x:
        if (not isinstance(i, int)):
            raise TypeError('The route provided must be a list of integers')
    x_sorted = sorted(x)
    dict_sorted = sorted(list(fuel_costs.keys()))
    if (x_sorted != dict_sorted):
        raise ValueError('The ints in the random route provided must be in the dicts as keys')
    if (len(x) == len(list(fuel_costs.keys())) == len(list(time_costs.keys()))):
        pass
    else:
        raise ValueError('The dicts must have the same dimension and the route example must have the same lenght as the dicts keys')
def _validate_route_example(x, fuel_costs, time_costs):
    for i in x:
        if (not isinstance(i, int)):
            raise TypeError('The route provided must be a list of integers')
    x_sorted = sorted(x)
    dict_sorted = sorted(list(fuel_costs.keys()))
    if (x_sorted != dict_sorted):
        raise ValueError('The ints in the random route provided must be in the dicts as keys')
    if (len(x) == len(list(fuel_costs.keys())) == len(list(time_costs.keys()))):
        pass
    else:
        raise ValueError('The dicts must have the same dimension and the route example must have the same lenght as the dicts keys')