code: def test_mro_entry_type_call(self):
      # Substitution should _not_ happen in direct type call
      class C:
          def __mro_entries__(self, bases):
              return ()
  
      c = C()
      with self.assertRaisesRegex(
          TypeError, "MRO entry resolution; " "use types.new_class()"
      ):
          type("Bad", (c,), {})
  
imports: import unittest
  from test import support
label_desc: Use image node_id 9 for calling the TestMROEntry obj's underlying member method code with example usage: obj.test_mro_entry_type_call() and returns: 