code: def _parse_tensor_name(name):
      """Convert a tensor name like 'tensor:0' into a tuple ('tensor', 0)."""
      if ":" in name and not name.endswith(":"):
          node_name = name[: name.rfind(":")]
          output_slot = int(name[name.rfind(":") + 1 :])
          return node_name, output_slot
      else:
          return name, None
  
imports: import collections
  import copy
  import os
  import re
  import shlex
  from typing import List, Tuple
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import convert_to_constants
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import versions
  from tensorflow.python.grappler import tf_optimizer
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import sysconfig
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import saver
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_tensor_name(name) and returns: node_name,  output_slot, name,  None