code: def test___classcell___wrong_cell(self):
      # See issue #23722
      # Pointing the cell reference at the wrong class is also prohibited
      class Meta(type):
          def __new__(cls, name, bases, namespace):
              cls = super().__new__(cls, name, bases, namespace)
              B = type("B", (), namespace)
              return cls
  
      with self.assertRaises(TypeError):
  
          class A(metaclass=Meta):
              def f(self):
                  return __class__
  
imports: import unittest
  from unittest.mock import patch
  from test import shadowed_super
label_desc: Use image node_id 19 for calling the TestSuper obj's underlying member method code with example usage: obj.test___classcell___wrong_cell() and returns: cls, __class__