def METHOD_NAME(split_path):
    train = []
    test = []
    with open(split_path, "r") as f:
        for line in f.readlines():
            filename, split = line.strip().rsplit(maxsplit=1)
            if split == "1":
                train.append(filename)
            elif split == "2":
                test.append(filename)
    return train, test