def METHOD_NAME(test_data_csv_csv_10, test_data_csv_csv_20, size, shuffle):
    if size == 10:
        csvfilename = test_data_csv_csv_10
    elif size == 20:
        csvfilename = test_data_csv_csv_20
    cds = CsvDataSource(csvfilename, shuffle)
    cds.reset()
    order = []
    for n in range(0, cds.size):
        data, label = cds.next()
        assert data[0][0] == label[0]
        order.append(int(round(data[0][0])))
    if shuffle:
        assert not list(range(size)) == order
        assert list(range(size)) == sorted(order)
    else:
        assert list(range(size)) == order