code: def get_op_name(tensor_name):
      """
      Given a tensor name, return the corresponding op name.
  
      Args:
          tensor_name: The name of a tensor.
  
      Returns:
          str: The op name
      """
      return tensor_name.replace("^", "").split(":")[0]
  
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 1 for calling a global function with example usage: get_op_name(tensor_name) and returns: tensor_name