def eval_datasets_flist_reader(flist):
    """
    :param flist format: impath,impath\nimpath impath\n ...
    :return: (impath, label) list
    """
    imlist = []
    with open(flist, 'r') as rf:
        for line in rf.readlines():
            q,r = line.strip().split(',')
            if q == 'query_id':
                continue
            imlist.append((q,r))
    return imlist