code: def read_tf_checkpoint(path):
      """read tensorflow checkpoint"""
      from tensorflow.python import pywrap_tensorflow
  
      tensors = {}
      reader = pywrap_tensorflow.NewCheckpointReader(path)
      var_to_shape_map = reader.get_variable_to_shape_map()
      for key in sorted(var_to_shape_map):
          tensor = reader.get_tensor(key)
          tensors[key] = tensor
      return tensors
  
imports: import tensorflow_hub
  import tensorflow.compat.v1
  import os
  import re
  import json
  import shutil
  import logging
  import argparse
  import mxnet
  import torch
  import numpy
  from numpy.testing import assert_allclose
  from gluonnlp.data.vocab import Vocab
  from gluonnlp.utils.misc import naming_convention, logging_config, BooleanOptionalAction
  from gluonnlp.models.bert import BertModel, BertForMLM
  from gluonnlp.models.albert import AlbertModel, AlbertForMLM
  from gluonnlp.torch.models.bert import BertModel, BertForMLM
  from gluonnlp.data.tokenizers import SentencepieceTokenizer, HuggingFaceWordPieceTokenizer
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: read_tf_checkpoint(path) and returns: tensors