code: def process_ja_alt(paths, dataset_name, *args):
      """
      Convert and split the ALT dataset
  
      TODO: could theoretically extend this to MY or any other similar dataset from ALT
      """
      lang, source = dataset_name.split("_", 1)
      assert lang == "ja"
      assert source == "alt"
  
      PIECES = ["Japanese-ALT-Draft.txt", "Japanese-ALT-Reviewed.txt"]
      input_dir = os.path.join(
          paths["CONSTITUENCY_BASE"],
          "japanese",
          "Japanese-ALT-20210218",
      )
      input_files = [
          os.path.join(input_dir, input_file) for input_file in PIECES
      ]
      split_files = [
          os.path.join(input_dir, "URL-%s.txt" % shard)
          for shard in SHARDS
      ]
      output_dir = paths["CONSTITUENCY_DATA_DIR"]
      output_files = [
          os.path.join(output_dir, "%s_%s.mrg" % (dataset_name, shard))
          for shard in SHARDS
      ]
      convert_alt(input_files, split_files, output_files)
  
imports: import argparse
  import os
  import random
  import sys
  import tempfile
  from tqdm import tqdm
  from stanza.models.constituency import parse_tree
  import stanza.utils.default_paths
  from stanza.models.constituency import tree_reader
  from stanza.models.constituency.parse_tree import Tree
  from stanza.server import tsurgeon
  from stanza.utils.datasets.constituency import utils
  from stanza.utils.datasets.constituency.convert_alt import convert_alt
  from stanza.utils.datasets.constituency.convert_arboretum import convert_tiger_treebank
  from stanza.utils.datasets.constituency.convert_cintil import convert_cintil_treebank
  import stanza.utils.datasets.constituency.convert_ctb
  from stanza.utils.datasets.constituency.convert_it_turin import convert_it_turin
  from stanza.utils.datasets.constituency.convert_it_vit import convert_it_vit
  from stanza.utils.datasets.constituency.convert_starlang import read_starlang
  from stanza.utils.datasets.constituency.utils import SHARDS, write_dataset
  import stanza.utils.datasets.constituency.vtb_convert
  import stanza.utils.datasets.constituency.vtb_split
label_desc: Use image node_id 8 for calling a global function with example usage: process_ja_alt(paths, dataset_name) without return types