code: def testSessionInit(self):
      self.assertEqual(0, self._observer["sess_init_count"])
  
      wrapper_sess = TestDebugWrapperSession(
          self._sess, self._dump_root, self._observer
      )
  
      # Assert that on-session-init callback is invoked.
      self.assertEqual(1, self._observer["sess_init_count"])
  
      # Assert that the request to the on-session-init callback carries the
      # correct session object.
      self.assertEqual(self._sess, self._observer["request_sess"])
  
      # Verify that the wrapper session implements the session.SessionInterface.
      self.assertTrue(
          isinstance(wrapper_sess, session.SessionInterface)
      )
      self.assertEqual(self._sess.sess_str, wrapper_sess.sess_str)
      self.assertEqual(self._sess.graph, wrapper_sess.graph)
      self.assertEqual(self._sess.graph_def, wrapper_sess.graph_def)
  
      # Check that the partial_run_setup and partial_run are not implemented for
      # the debug wrapper session.
      with self.assertRaises(NotImplementedError):
          wrapper_sess.partial_run_setup(self._p)
  
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 4 for calling the DebugWrapperSessionTest obj's underlying member method code with example usage: obj.testSessionInit() without return types