code: def test___classcell___missing(self):
      # See issue #23722
      # Some metaclasses may not pass the original namespace to type.__new__
      # We test that case here by forcibly deleting __classcell__
      class Meta(type):
          def __new__(cls, name, bases, namespace):
              namespace.pop("__classcell__", None)
              return super().__new__(cls, name, bases, namespace)
  
      # The default case should continue to work without any errors
      class WithoutClassRef(metaclass=Meta):
          pass
  
      # With zero-arg super() or an explicit __class__ reference, we expect
      # __build_class__ to raise a RuntimeError complaining that
      # __class__ was not set, and asking if __classcell__ was propagated
      # to type.__new__.
      expected_error = "__class__ not set.*__classcell__ propagated"
      with self.assertRaisesRegex(RuntimeError, expected_error):
  
          class WithClassRef(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 17 for calling the TestSuper obj's underlying member method code with example usage: obj.test___classcell___missing() and returns: super, __class__