code: def summarize_tensors(tensor_dict, tag=None):
      """Summarize the tensors.
  
      Args:
        tensor_dict: a dictionary of tensors.
        tag: name scope of the summary; defaults to tensors/.
      """
      if tag is None:
          tag = "tensors/"
  
      for t_name in list(tensor_dict):
          t = tensor_dict[t_name]
          tf.summary.histogram(tag + t_name, t)
  
file_path: tensor2tensor/tensor2tensor/layers/vqa_layers.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.layers import common_attention
  from tensor2tensor.layers import common_layers
  from tensor2tensor.utils import contrib
  import tensorflow.compat.v1
  from tensorflow.contrib import slim
  from tensorflow.contrib.slim.python.slim.nets.resnet_v1 import resnet_v1_152
  from tensorflow.contrib.slim.python.slim.nets.resnet_v2 import resnet_v2_152
  from tensorflow.python.ops import inplace_ops
label_desc: Use image node_id 1 for calling a global function with example usage: summarize_tensors(tensor_dict, tag) without return types