docstr: Attempt to wrap a non-Session-type object should cause an exception.
docstr_tok: ["Attempt","to","wrap","a","non-Session-type","object","should","cause","an","exception","."]
code: def testSessionInitInvalidSessionType(self):
      """Attempt to wrap a non-Session-type object should cause an exception."""
  
      wrapper = TestDebugWrapperSessionBadAction(self._sess)
      with self.assertRaisesRegex(
          TypeError, "Expected type .*; got type .*"
      ):
          TestDebugWrapperSessionBadAction(wrapper)
  
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 7 for calling the DebugWrapperSessionTest obj's underlying member method code with example usage: obj.testSessionInitInvalidSessionType() without return types