code: def testSessionRun(self):
      wrapper = TestDebugWrapperSession(
          self._sess, self._dump_root, self._observer
      )
  
      # Check initial state of the observer.
      self.assertEqual(0, self._observer["on_run_start_count"])
      self.assertEqual(0, self._observer["on_run_end_count"])
  
      s = wrapper.run(self._s)
  
      # Assert the run return value is correct.
      self.assertAllClose(np.array([[3.0], [4.0]]), s)
  
      # Assert the on-run-start method is invoked.
      self.assertEqual(1, self._observer["on_run_start_count"])
  
      # Assert the on-run-start request reflects the correct fetch.
      self.assertEqual(self._s, self._observer["run_fetches"])
  
      # Assert the on-run-start request reflects the correct feed_dict.
      self.assertIsNone(self._observer["run_feed_dict"])
  
      # Assert the file debug URL has led to dump on the filesystem.
      dump = debug_data.DebugDumpDir(self._dump_root)
      self.assertEqual(7, len(dump.dumped_tensor_data))
  
      # Assert the on-run-end method is invoked.
      self.assertEqual(1, self._observer["on_run_end_count"])
  
      # Assert the performed action field in the on-run-end callback request is
      # correct.
      self.assertEqual(
          framework.OnRunStartAction.DEBUG_RUN,
          self._observer["performed_action"],
      )
  
      # No TensorFlow runtime error should have happened.
      self.assertIsNone(self._observer["tf_error"])
  
imports: import os
  import tempfile
  import threading
  import numpy
  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.wrappers import framework
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  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 array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import googletest
  from tensorflow.python.training import monitored_session
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 6 for calling the DebugWrapperSessionTest obj's underlying member method code with example usage: obj.testSessionRun() without return types