code: def main(args=None):
      args = parse_args(args=args)
  
      utils.set_random_seed(args["seed"])
  
      logger.info("Running NER tagger in {} mode".format(args["mode"]))
  
      if args["mode"] == "train":
          return train(args)
      else:
          evaluate(args)
  
imports: import sys
  import os
  import time
  from datetime import datetime
  import argparse
  import logging
  import numpy
  import random
  import re
  import json
  import torch
  from torch import nn, optim
  from stanza.models.ner.data import DataLoader
  from stanza.models.ner.trainer import Trainer
  from stanza.models.ner import scorer
  from stanza.models.common import utils
  from stanza.models.common.pretrain import Pretrain
  from stanza.utils.conll import CoNLL
  from stanza.models.common.doc import *
  from stanza.models import _training_logging
  from stanza.utils.confusion import confusion_to_weighted_f1, format_confusion
label_desc: Use image node_id 3 for calling a global function with example usage: main(args) and returns: train