code: def _tensor_name(tensor):
      """Get a name of a tensor without trailing ":0" when relevant."""
      # tensor.name is unicode in Python 3 and bytes in Python 2 so convert to
      # bytes here.
      name = str(tensor.name)
      return name[:-2] if name.endswith(":0") else name
  
imports: import collections
  import dataclasses
  import hashlib
  from typing import Collection, Dict, Mapping, Optional, Tuple
  from typing import OrderedDict
  import tensorflow
  from tensorflow_transform import analyzer_nodes
  from tensorflow_transform import common_types
  from tensorflow_transform import graph_tools
  from tensorflow_transform import impl_helper
  from tensorflow_transform import nodes
  from tensorflow_transform import tf2_utils
  from tensorflow_transform import tf_utils
  from tensorflow_transform.beam import analyzer_cache
  from tensorflow_transform.beam import beam_nodes
  from tensorflow_transform.beam import combiner_packing_util
label_desc: Use image node_id 1 for calling a global function with example usage: _tensor_name(tensor) and returns: unknown