def generate_lane_data(veh_data):
    """
    Generates Labels for Lane-Changing Model for a given vehicle
    Args:
        veh_data: (helper.VehicleData) represents vehicle we're analyzing
    Returns:
        lane_data: python list of 0/1/2, 0 is lane changing to the left, 1 is
            staying in the same lane, and 2 is lane changing to the right
    """
    lane_data = []
    for time in range(veh_data.start + 1, veh_data.end + 1):
        if veh_data.lanemem[time] < veh_data.lanemem[time - 1]:
            lane_data.append(0)
        elif veh_data.lanemem[time] == veh_data.lanemem[time - 1]:
            lane_data.append(1)
        else:
            lane_data.append(2)
    return lane_data