code: def get_tensor_aliases(tensor):
      """Get a list with the aliases of the input tensor.
  
      If the tensor does not have any alias, it would default to its its op.name or
      its name.
  
      Args:
        tensor: A `Tensor`.
  
      Returns:
        A list of strings with the aliases of the tensor.
      """
      if hasattr(tensor, "aliases"):
          aliases = tensor.aliases
      else:
          if tensor.name[-2:] == ":0":
              # Use op.name for tensor ending in :0
              aliases = [tensor.op.name]
          else:
              aliases = [tensor.name]
      return aliases
  
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 4 for calling a global function with example usage: get_tensor_aliases(tensor) and returns: aliases