code: def process_data(
      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)
  
imports: import argparse
  import json
  import random
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: process_data(data, save_name_base, train_percent, random_seed, make_ground_truth) without return types