def read_labeled_image_list(image_list_file):
    """Reads a .csv file containing paths and labels, should be in the format:
        image_file_location1,valence_value1,arousal_value1
        image_file_location2,valence_value2,arousal_value2
        ...
        images should be jpgs
        Returns:
        a list with all filenames in file image_list_file and a list containing lists of the 2 respective labels  
    """
    f = open(image_list_file, 'r')
    filenames = []

    labels_val = []
    labels_ar = []

    for line in f:
        inputs = line.rstrip().split(',')
        filenames.append(inputs[0])
        labels_val.append(float(inputs[1]))
        labels_ar.append(float(inputs[2]))

    labels = [list(a) for a in zip(labels_val, labels_ar)]
    return filenames, labels