code: def get_node_name(element_name):
      node_name, _ = parse_node_or_tensor_name(element_name)
      return node_name
  
imports: from tensorflow.core.framework import graph_pb2
  from tensorflow.python.framework import op_def_registry
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 2 for calling a global function with example usage: get_node_name(element_name) and returns: node_name