code: def get_op_tensor_name(name):
      """
      Will automatically determine if ``name`` is a tensor name (ends with ':x')
      or a op name.
      If it is an op name, the corresponding tensor name is assumed to be ``op_name + ':0'``.
  
      Args:
          name(str): name of an op or a tensor
      Returns:
          tuple: (op_name, tensor_name)
      """
      if len(name) >= 3 and name[-2] == ":":
          return name[:-2], name
      else:
          return name, name + ":0"
  
file_path: tensorpack/tensorpack/tfutils/common.py
imports: import tensorflow
  from ..compat import tfv1
  from ..utils.argtools import graph_memoized
  from .collect_env import collect_env_info
label_desc: Use image node_id 4 for calling a global function with example usage: get_op_tensor_name(name) and returns: name,  name, name,  unknown