code: def main(xml_directory, out_directory, short_name):
      snippets = read_snippets(xml_directory)
  
      print("Found {} phrases".format(len(snippets)))
      os.makedirs(out_directory, exist_ok=True)
      process_utils.write_splits(
          out_directory,
          snippets,
          (
              process_utils.Split("%s.train.json" % short_name, 0.8),
              process_utils.Split("%s.dev.json" % short_name, 0.1),
              process_utils.Split("%s.test.json" % short_name, 0.1),
          ),
      )
  
file_path: stanza/stanza/utils/datasets/sentiment/process_ren_chinese.py
imports: import glob
  import os
  import random
  import sys
  import xml.etree.ElementTree
  from collections import namedtuple
  import stanza
  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(xml_directory, out_directory, short_name) without return types