import csv


def read_csv(csv_path):
    """Assume that csv file is formatted as:
        name1,label1
        name2,label2
        ...
    """
    with open(csv_path) as to_read:
        csv_reader = csv.reader(to_read)
        ret_list = [(name, int(label)) for name, label in csv_reader]
    return ret_list