code: def main(in_directory, out_directory, short_name):
      phrases = get_tokenized_phrases(in_directory)
      out_filename = os.path.join(
          out_directory, "%s.train.json" % short_name
      )
      os.makedirs(out_directory, exist_ok=True)
      process_utils.write_list(out_filename, phrases)
  
imports: 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