code: def model_file_has_bert(filename):
      checkpoint = torch.load(filename, lambda storage, loc: storage)
      return any(
          x.startswith("bert_model.")
          for x in checkpoint["model"].keys()
      )
  
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 13 for calling a global function with example usage: model_file_has_bert(filename) and returns: any