code: def convert_sst_general(paths, dataset_name, version):
      in_directory = paths["SENTIMENT_BASE"]
      sst_dir = os.path.join(in_directory, "sentiment-treebank")
      train_phrases = process_sst.get_phrases(
          version, "train.txt", sst_dir
      )
      dev_phrases = process_sst.get_phrases(version, "dev.txt", sst_dir)
      test_phrases = process_sst.get_phrases(
          version, "test.txt", sst_dir
      )
  
      out_directory = paths["SENTIMENT_DATA_DIR"]
      dataset = [train_phrases, dev_phrases, test_phrases]
      process_utils.write_dataset(dataset, out_directory, dataset_name)
  
imports: import os
  import random
  import sys
  import stanza.utils.default_paths
  from stanza.utils.datasets.sentiment import process_airline
  from stanza.utils.datasets.sentiment import process_arguana_xml
  from stanza.utils.datasets.sentiment import process_corona
  from stanza.utils.datasets.sentiment import process_es_tass2020
  from stanza.utils.datasets.sentiment import process_it_sentipolc16
  from stanza.utils.datasets.sentiment import process_MELD
  from stanza.utils.datasets.sentiment import process_ren_chinese
  from stanza.utils.datasets.sentiment import process_sb10k
  from stanza.utils.datasets.sentiment import process_scare
  from stanza.utils.datasets.sentiment import process_slsd
  from stanza.utils.datasets.sentiment import process_sst
  from stanza.utils.datasets.sentiment import process_usage_german
  from stanza.utils.datasets.sentiment import process_vsfc_vietnamese
  from stanza.utils.datasets.sentiment import process_utils
label_desc: Use image node_id 1 for calling a global function with example usage: convert_sst_general(paths, dataset_name, version) without return types