code: def load_model(
      self, model_dir: str, model_config: str = "model_config.json"
  ):
      model_config = os.path.join(model_dir, model_config)
      model_config = json.load(open(model_config))
      model = BertNer.from_pretrained(model_dir)
      tokenizer = BertTokenizer.from_pretrained(
          model_dir, do_lower_case=model_config["do_lower"]
      )
      return model, tokenizer, model_config
  
file_path: DeepKE/src/deepke/name_entity_re/standard/models/InferBert.py
imports: import json
  import os
  import torch
  import torch.nn.functional
  from transformers import BertConfig, BertForTokenClassification, BertTokenizer
  from collections import OrderedDict
  from .BiLSTM_CRF import *
  import hydra
  from hydra import utils
  import nltk
  from nltk import word_tokenize
label_desc: Use image node_id 2 for calling the InferNer obj's underlying member method code with example usage: obj.load_model(model_dir, model_config) and returns: model,  tokenizer,  model_config