code: def collect_named_outputs(collections, alias, outputs):
      """Add `Tensor` outputs tagged with alias to collections.
  
      It is useful to collect end-points or tags for summaries. Example of usage:
  
      logits = collect_named_outputs('end_points', 'inception_v3/logits', logits)
      assert 'inception_v3/logits' in logits.aliases
  
      Args:
        collections: A collection or list of collections. If None skip collection.
        alias: String to append to the list of aliases of outputs, for example,
               'inception_v3/conv1'.
        outputs: Tensor, an output tensor to collect
  
      Returns:
        The outputs Tensor to allow inline call.
      """
      if collections:
          append_tensor_alias(outputs, alias)
          ops.add_to_collections(collections, outputs)
      return outputs
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from collections import namedtuple
  from collections import OrderedDict
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import variables
label_desc: Use image node_id 1 for calling a global function with example usage: collect_named_outputs(collections, alias, outputs) and returns: outputs