code: def build_model_filename(paths, short_name, command_args, extra_args):
      """
      Figure out what the model savename will be, taking into account the model settings.
  
      Useful for figuring out if the model already exists
  
      None will represent that there is no expected save_name
      """
      short_language, dataset = short_name.split("_", 1)
  
      lemma_dir = paths["LEMMA_DATA_DIR"]
      train_file = f"{lemma_dir}/{short_name}.train.in.conllu"
  
      if not os.path.exists(train_file):
          logger.debug(
              "Treebank %s is not prepared for training the lemmatizer.  Could not find any training data at %s  Cannot figure out the expected save_name without looking at the data, but a later step in the process will skip the training anyway"
              % (treebank, train_file)
          )
          return None
  
      has_lemmas = check_lemmas(train_file)
      if not has_lemmas:
          return None
  
      # TODO: can avoid downloading the charlm at this point, since we
      # might not even be training
      charlm_args = build_lemma_charlm_args(
          short_language, dataset, command_args.charlm
      )
  
      train_args = [
          "--train_file",
          train_file,
          "--shorthand",
          short_name,
          "--mode",
          "train",
      ]
      train_args = train_args + charlm_args + extra_args
      args = lemmatizer.parse_args(train_args)
      save_name = lemmatizer.build_model_filename(args)
      return save_name
  
file_path: stanza/stanza/utils/training/run_lemma.py
imports: import logging
  import os
  from stanza.models import identity_lemmatizer
  from stanza.models import lemmatizer
  from stanza.utils.training import common
  from stanza.utils.training.common import Mode, add_charlm_args, build_lemma_charlm_args, choose_lemma_charlm
  from stanza.utils.datasets.prepare_lemma_treebank import check_lemmas
label_desc: Use image node_id 2 for calling a global function with example usage: build_model_filename(paths, short_name, command_args, extra_args) and returns: save_name, None, None