code: def _no_rewrite_session_config(self):
      rewriter_config = rewriter_config_pb2.RewriterConfig(
          dependency_optimization=rewriter_config_pb2.RewriterConfig.OFF,
          pin_to_host_optimization=rewriter_config_pb2.RewriterConfig.OFF,
          min_graph_nodes=-1,
      )
      graph_options = config_pb2.GraphOptions(
          rewrite_options=rewriter_config
      )
      return config_pb2.ConfigProto(graph_options=graph_options)
  
imports: import tempfile
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.debug.lib import debug_data
  from tensorflow.python.debug.lib import debug_graphs
  from tensorflow.python.debug.lib import debug_utils
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import cond
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import test
  from tensorflow.python.training import gradient_descent
label_desc: Use image node_id 1 for calling the ReconstructNonDebugGraphTest obj's underlying member method code with example usage: obj._no_rewrite_session_config() and returns: config_pb2