code: def main():
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--data-dir",
          type=str,
          default="data/FinancialPhraseBank-v1.0",
      )
      parser.add_argument(
          "--file-name", type=str, default="Sentences_AllAgree.txt"
      )
      parser.add_argument(
          "--save-name-base", type=str, default="financial_phrase_bank"
      )
      parser.add_argument("--make-ground-truth", action="store_true")
      parser.add_argument("--random-seed", type=int, default=1234)
      parser.add_argument("--train-percent", type=float, default=0.8)
      args = parser.parse_args()
  
      data = open(
          f"{args.data_dir}/{args.file_name}",
          "r",
          encoding="ISO-8859-1",
      ).readlines()
      save_name_base = f"{args.data_dir}/{args.save_name_base}"
  
      process_data(
          data,
          save_name_base,
          args.train_percent,
          args.random_seed,
          args.make_ground_truth,
      )
  
imports: import argparse
  import json
  import random
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types