code: def main(args=None):
      args = parse_args(args=args)
  
      random.seed(args.seed)
  
      args = vars(args)
  
      logger.info("[Launching identity lemmatizer...]")
  
      if args["mode"] == "train":
          logger.info(
              "[No training is required; will only generate evaluation output...]"
          )
  
      document = CoNLL.conll2doc(input_file=args["eval_file"])
      batch = DataLoader(
          document,
          args["batch_size"],
          args,
          evaluation=True,
          conll_only=True,
      )
      system_pred_file = args["output_file"]
      gold_file = args["gold_file"]
  
      # use identity mapping for prediction
      preds = batch.doc.get([TEXT])
  
      # write to file and score
      batch.doc.set([LEMMA], preds)
      CoNLL.write_doc2conll(batch.doc, system_pred_file)
      if gold_file is not None:
          _, _, score = scorer.score(system_pred_file, gold_file)
  
          logger.info("Lemma score:")
          logger.info(
              "{} {:.2f}".format(args["shorthand"], score * 100)
          )
  
file_path: stanza/stanza/models/identity_lemmatizer.py
imports: import os
  import argparse
  import logging
  import random
  from stanza.models.lemma.data import DataLoader
  from stanza.models.lemma import scorer
  from stanza.models.common import utils
  from stanza.models.common.doc import *
  from stanza.utils.conll import CoNLL
  from stanza.models import _training_logging
label_desc: Use image node_id 2 for calling a global function with example usage: main(args) without return types