code: def run_training(pretrain_file, tmp_path, *extra_args):
      train_json = tmp_path / "en_test.train.json"
      write_temp_file(train_json, EN_TRAIN_BIO)
  
      dev_json = tmp_path / "en_test.dev.json"
      write_temp_file(dev_json, EN_DEV_BIO)
  
      args = get_args(
          tmp_path, pretrain_file, train_json, dev_json, *extra_args
      )
      return ner_tagger.main(args)
  
imports: import json
  import logging
  import os
  import warnings
  import pytest
  import torch
  from stanza.models import ner_tagger
  from stanza.models.ner.trainer import Trainer
  from stanza.tests import TEST_WORKING_DIR
  from stanza.utils.datasets.ner.prepare_ner_file import process_dataset
label_desc: Use image node_id 10 for calling a global function with example usage: run_training(pretrain_file, tmp_path) and returns: ner_tagger