code: def test_class_getitem_errors_2(self):
      class C:
          def __class_getitem__(cls, item):
              return None
  
      with self.assertRaises(TypeError):
          C()[int]
  
      class E:
          ...
  
      e = E()
      e.__class_getitem__ = lambda cls, item: "This will not work"
      with self.assertRaises(TypeError):
          e[int]
  
      class C_not_callable:
          __class_getitem__ = "Surprise!"
  
      with self.assertRaises(TypeError):
          C_not_callable[int]
  
      class C_is_none(tuple):
          __class_getitem__ = None
  
      with self.assertRaisesRegex(TypeError, "C_is_none"):
          C_is_none[int]
  
imports: import unittest
  from test import support
label_desc: Use image node_id 9 for calling the TestClassGetitem obj's underlying member method code with example usage: obj.test_class_getitem_errors_2() and returns: None