code: def summarize_activations(
      name_filter=None, summarizer=summarize_activation
  ):
      """Summarize activations, using `summarize_activation` to summarize."""
      return summarize_collection(
          ops.GraphKeys.ACTIVATIONS, name_filter, summarizer
      )
  
file_path: tensornets/tensornets/contrib_layers/summaries.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import re
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import standard_ops
  from tensorflow.python.summary import summary
label_desc: Use image node_id 7 for calling a global function with example usage: summarize_activations(name_filter, summarizer) and returns: summarize_collection