code: def TensorName(x):
      """Get the canonical (non foo:0 name)."""
      return x.name.split(":")[0]
  
file_path: tensorflow/tensorflow/lite/toco/python/toco_from_protos_test.py
imports: import os
  import tempfile
  import tensorflow.compat.v1
  from tensorflow.lite.toco import model_flags_pb2
  from tensorflow.lite.toco import toco_flags_pb2
  from tensorflow.lite.toco import types_pb2
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import resource_loader
label_desc: Use image node_id 1 for calling a global function with example usage: TensorName(x) and returns: x