code: def read_tensor_in_checkpoint(tensor_name, checkpoint_path):
      try:
          reader = pywrap_tensorflow.NewCheckpointReader(
              checkpoint_path
          )
          return reader.get_tensor(tensor_name)
      except Exception as e:  # pylint: disable=broad-except
          print(str(e))
          if "corrupted compressed block contents" in str(e):
              print(
                  "It's likely that your checkpoint file has been compressed "
                  "with SNAPPY."
              )
  
imports: from __future__ import division, print_function, absolute_import
  import six
  import string
  import random
  import numpy
  import tensorflow.compat.v1
  from tensorflow.python import pywrap_tensorflow
  import tflearn.variables
label_desc: Use image node_id 10 for calling a global function with example usage: read_tensor_in_checkpoint(tensor_name, checkpoint_path) and returns: reader