gh-125783: Add tests to prevent regressions with the combination of ctypes and metaclasses.
#125881
+87
−0
ctypes and metaclasses.
#125881