code: def test_class_getitem_metaclass_first(self):
      class Meta(type):
          def __getitem__(cls, item):
              return "from metaclass"
  
      class C(metaclass=Meta):
          def __class_getitem__(cls, item):
              return "from __class_getitem__"
  
      self.assertEqual(C[int], "from metaclass")
  
imports: import unittest
  from test import support
label_desc: Use image node_id 12 for calling the TestClassGetitem obj's underlying member method code with example usage: obj.test_class_getitem_metaclass_first() and returns: str, str