def METHOD_NAME(self):
    class Meta(type): pass
    class C(metaclass=Meta):
        def __class_getitem__(cls, item):
            return f'{cls.__name__}[{item.__name__}]'
    self.assertEqual(C[int], 'C[int]')