code: def reconstruct_non_debug_graph_def(debug_graph_def):
      """Reconstruct original (non-debugger-decorated) partition GraphDef.
  
      This method strips the input `tf.compat.v1.GraphDef` of the Copy* and
      Debug*-type nodes inserted by the debugger.
  
      The reconstructed partition graph is identical to the original (i.e.,
        non-debugger-decorated) partition graph except in the following respects:
          1) The exact names of the runtime-inserted internal nodes may differ.
             These include _Send, _Recv, _HostSend, _HostRecv, _Retval ops.
          2) As a consequence of 1, the nodes that receive input directly from such
             send- and recv-type ops will have different input names.
          3) The parallel_iteration attribute of while-loop Enter ops are set to 1.
  
      Args:
        debug_graph_def: The debugger-decorated `tf.compat.v1.GraphDef`, with the
          debugger-inserted Copy* and Debug* nodes.
  
      Returns:
        The reconstructed `tf.compat.v1.GraphDef` stripped of the debugger-inserted
        nodes.
      """
      return DebugGraph(debug_graph_def).non_debug_graph_def
  
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 8 for calling a global function with example usage: reconstruct_non_debug_graph_def(debug_graph_def) and returns: DebugGraph