code: def test_with_bert(pretrain_file, tmp_path):
      trainer = run_training(
          pretrain_file,
          tmp_path,
          "--bert_model",
          "hf-internal-testing/tiny-bert",
      )
      model_file = os.path.join(
          trainer.args["save_dir"], trainer.args["save_name"]
      )
      assert not model_file_has_bert(model_file)
  
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 14 for calling a global function with example usage: test_with_bert(pretrain_file, tmp_path) without return types