code: def add_variable_summaries(var, var_name_scope):
      """Attach a lot of summaries to a Tensor (for TensorBoard visualization)."""
      with tf.name_scope("summaries/" + var_name_scope):
          mean = tf.reduce_mean(var)
          stddev = tf.sqrt(tf.reduce_mean(tf.square(var - mean)))
          var_max = tf.reduce_max(var)
          var_min = tf.reduce_min(var)
          tf.summary.scalar("mean", mean)
          tf.summary.scalar("stddev", stddev)
          tf.summary.scalar("max", var_max)
          tf.summary.scalar("min", var_min)
          tf.summary.histogram("histogram", var)
  
file_path: neural-structured-learning/research/a2n/utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import gzip
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: add_variable_summaries(var, var_name_scope) without return types