code: def choose_transformer(
      short_language, command_args, extra_args, warn=True, layers=False
  ):
      """
      Choose a transformer using the default options for this language
      """
      bert_args = []
      if (
          command_args is not None
          and command_args.use_bert
          and "--bert_model" not in extra_args
      ):
          if short_language in TRANSFORMERS:
              bert_args = [
                  "--bert_model",
                  TRANSFORMERS.get(short_language),
              ]
              if (
                  layers
                  and short_language in TRANSFORMER_LAYERS
                  and "--bert_hidden_layers" not in extra_args
              ):
                  bert_args.extend(
                      [
                          "--bert_hidden_layers",
                          str(TRANSFORMER_LAYERS.get(short_language)),
                      ]
                  )
          elif warn:
              logger.error(
                  "Transformer requested, but no default transformer for %s  Specify one using --bert_model"
                  % short_language
              )
  
      return bert_args
  
imports: import argparse
  import glob
  import logging
  import os
  import pathlib
  import sys
  import tempfile
  from enum import Enum
  from stanza.resources.default_packages import default_charlms, lemma_charlms, pos_charlms, depparse_charlms, TRANSFORMERS, TRANSFORMER_LAYERS
  from stanza.models.common.constant import treebank_to_short_name
  from stanza.models.common.utils import ud_scores
  from stanza.resources.common import download, DEFAULT_MODEL_DIR, UnknownLanguageError
  from stanza.utils.datasets import common
  import stanza.utils.default_paths
  from stanza.utils import conll18_ud_eval
label_desc: Use image node_id 16 for calling a global function with example usage: choose_transformer(short_language, command_args, extra_args, warn, layers) and returns: bert_args