code: def main(in_directory, out_directory, short_name):
      os.makedirs(out_directory, exist_ok=True)
      for split in ("train", "dev", "test"):
          phrases = get_tokenized_phrases(split, in_directory)
          process_utils.write_list(
              os.path.join(
                  out_directory, "%s.%s.json" % (short_name, split)
              ),
              phrases,
          )
  
imports: import csv
  import os
  import sys
  from stanza.models.classifiers.data import SentimentDatum
  import stanza.utils.datasets.sentiment.process_utils
label_desc: Use image node_id 3 for calling a global function with example usage: main(in_directory, out_directory, short_name) without return types