code: def decode_tensor_node(
      graph: tf.Graph, encoded_tensor_node: any_pb2.Any
  ) -> types.TensorType:
      """Decode an encoded Tensor node encoded with encode_tensor_node.
  
      Decodes the encoded Tensor "reference", and returns the node in the given
      graph corresponding to that Tensor.
  
      Args:
        graph: Graph the Tensor
        encoded_tensor_node: Encoded Tensor.
  
      Returns:
        Decoded Tensor.
      """
      tensor_info = meta_graph_pb2.TensorInfo()
      encoded_tensor_node.Unpack(tensor_info)
      return tf.compat.v1.saved_model.utils.get_tensor_from_tensor_info(
          tensor_info, graph
      )
  
file_path: model-analysis/tensorflow_model_analysis/eval_saved_model/encoding.py
imports: import tensorflow
  from tensorflow_model_analysis.api import types
  from google.protobuf import any_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
label_desc: Use image node_id 5 for calling a global function with example usage: decode_tensor_node(graph, encoded_tensor_node) and returns: tf