code: def testErrorDuringRun(self):
      wrapper = TestDebugWrapperSession(
          self._sess, self._dump_root, self._observer
      )
  
      # No matrix size mismatch.
      self.assertAllClose(
          np.array([[11.0], [-1.0]]),
          wrapper.run(
              self._q, feed_dict={self._ph: np.array([[1.0], [2.0]])}
          ),
      )
      self.assertEqual(1, self._observer["on_run_end_count"])
      self.assertIsNone(self._observer["tf_error"])
  
      # Now there should be a matrix size mismatch error.
      wrapper.run(
          self._q, feed_dict={self._ph: np.array([[1.0], [2.0], [3.0]])}
      )
      self.assertEqual(2, self._observer["on_run_end_count"])
      self.assertTrue(
          isinstance(
              self._observer["tf_error"], errors.InvalidArgumentError
          )
      )
  
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 11 for calling the DebugWrapperSessionTest obj's underlying member method code with example usage: obj.testErrorDuringRun() without return types