code: def test___class___new(self):
      # See issue #23722
      # Ensure zero-arg super() works as soon as type.__new__() is completed
      test_class = None
  
      class Meta(type):
          def __new__(cls, name, bases, namespace):
              nonlocal test_class
              self = super().__new__(cls, name, bases, namespace)
              test_class = self.f()
              return self
  
      class A(metaclass=Meta):
          @staticmethod
          def f():
              return __class__
  
      self.assertIs(test_class, A)
  
imports: import unittest
  from unittest.mock import patch
  from test import shadowed_super
label_desc: Use image node_id 13 for calling the TestSuper obj's underlying member method code with example usage: obj.test___class___new() and returns: self, __class__