code: def gen_file(
      data, save_name_base, split_type, make_ground_truth=False
  ):
      save_path = f"{save_name_base}_{split_type}.jsonl"
      print(f"Saving {split_type} split to {save_path}")
  
      with open(save_path, "w") as save_file:
          for line in tqdm(data):
              example_json = {"taskname": "sentiment"}
              sent, label = line.split("@")
              sent = sent.strip()
              label = label.strip()
              example_json["sentence"] = sent
  
              # Dont want labels in the test set
              if split_type != "test" or make_ground_truth:
                  example_json["label"] = " " + label
  
              save_file.write(json.dumps(example_json) + "\n")
  
imports: import argparse
  import json
  import random
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: gen_file(data, save_name_base, split_type, make_ground_truth) without return types