code: def get_args(
      tmp_path, pretrain_file, train_json, dev_json, *extra_args
  ):
      save_dir = tmp_path / "models"
      args = [
          "--data_dir",
          str(tmp_path),
          "--wordvec_pretrain_file",
          pretrain_file,
          "--train_file",
          str(train_json),
          "--eval_file",
          str(dev_json),
          "--shorthand",
          "en_test",
          "--max_steps",
          "100",
          "--eval_interval",
          "40",
          "--save_dir",
          str(save_dir),
      ]
  
      args = args + list(extra_args)
      return 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 4 for calling a global function with example usage: get_args(tmp_path, pretrain_file, train_json, dev_json) and returns: args