code: def test_class_has_no_bases(self):
      class I(object):
          def getclass(self):
              # This must return an object that has no __bases__ attribute
              return None
  
          __class__ = property(getclass)
  
      class C(object):
          def getbases(self):
              return ()
  
          __bases__ = property(getbases)
  
      self.assertEqual(False, isinstance(I(), C()))
  
imports: import unittest
  import typing
  from test import support
label_desc: Use image node_id 1 for calling the TestIsInstanceExceptions obj's underlying member method code with example usage: obj.test_class_has_no_bases() and returns: None, 