code: def get_index_from_tensor_name(tensor_name):
      """
      Get the index of the tensor of a certain op.
  
      Args:
          tensor_name (str): The tensor name
  
      Returns:
          int: The index of the tensor
      """
      return int(tensor_name.split(":")[1])
  
file_path: autodist/autodist/kernel/common/utils.py
imports: from collections import deque
  from tensorflow.core.framework.attr_value_pb2 import AttrValue
  from tensorflow.python.util.compat import as_bytes
  from autodist.const import AUTODIST_REPLICA_PREFIX, COLOCATION_PREFIX
label_desc: Use image node_id 14 for calling a global function with example usage: get_index_from_tensor_name(tensor_name) and returns: int