code: def summarize_activations(
      activations, summary_collection="tflearn_summ"
  ):
      """summarize_activations.
  
      Arguemnts:
          activations: list of `Tensor`. The activations to monitor.
          summary_collection: A collection to add this summary to and
              also used for returning a merged summary over all its elements.
              Default: 'tflearn_summ'.
  
      Returns:
          `Tensor`. Merge of all summary in 'summary_collection'
  
      """
      summaries.add_activations_summary(
          activations, "", "", summary_collection
      )
      return merge_summary(tf.get_collection(summary_collection))
  
file_path: tflearn/tflearn/helpers/summarizer.py
imports: from __future__ import division, print_function, absolute_import
  import tensorflow.compat.v1
  from ..None import summaries
label_desc: Use image node_id 3 for calling a global function with example usage: summarize_activations(activations, summary_collection) and returns: merge_summary