code: def append_tensor_alias(tensor, alias):
      """Append an alias to the list of aliases of the tensor.
  
      Args:
        tensor: A `Tensor`.
        alias: String, to add to the list of aliases of the tensor.
  
      Returns:
        The tensor with a new alias appended to its list of aliases.
      """
      # Remove ending '/' if present.
      if alias[-1] == "/":
          alias = alias[:-1]
      if hasattr(tensor, "aliases"):
          tensor.aliases.append(alias)
      else:
          tensor.aliases = [alias]
      return tensor
  
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 2 for calling a global function with example usage: append_tensor_alias(tensor, alias) and returns: tensor