code: def parse_args(args=None):
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--data-format",
          help="input data format",
          choices=["ud", "one-per-line"],
          default="ud",
      )
      parser.add_argument(
          "--eval-length",
          help="length of eval strings",
          type=int,
          default=10,
      )
      parser.add_argument(
          "--languages",
          help='list of languages to use, or "all"',
          default=DEFAULT_LANGUAGES,
      )
      parser.add_argument(
          "--min-window",
          help="minimal training example length",
          type=int,
          default=10,
      )
      parser.add_argument(
          "--max-window",
          help="maximum training example length",
          type=int,
          default=50,
      )
      parser.add_argument("--ud-path", help="path to ud data")
      parser.add_argument(
          "--save-path", help="path to save data", default="."
      )
      parser.add_argument(
          "--splits",
          help="size of train/dev/test splits in percentages",
          type=splits_from_list,
          default="0.8,0.1,0.1",
      )
      args = parser.parse_args(args=args)
      return args
  
imports: import argparse
  import json
  import logging
  import os
  import re
  import sys
  from pathlib import Path
  from random import randint, random, shuffle
  from string import digits
  from tqdm import tqdm
  from stanza.models.common.constant import treebank_to_langid
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args(args) and returns: args