def METHOD_NAME(data, save_name_base, train_percent, random_seed, make_ground_truth=False):
    random.seed(random_seed)
    random.shuffle(data)
    data_total = len(data)
    train_total = int(data_total * train_percent)
    val_total = (data_total - train_total) // 2
    train_set = data[0:train_total]
    val_set = data[train_total : train_total + val_total]
    test_set = data[train_total + val_total :]
    gen_file(train_set, save_name_base, 'train')
    gen_file(val_set, save_name_base, 'val')
    gen_file(test_set, save_name_base, 'test', make_ground_truth)