def METHOD_NAME():
    class A:
        def foo(self):
            return 42
    class B(A):
        pass
    B.foo = lambda self: 1
    del B.foo
    class C(B):
        pass
    c = C()
    assert c.foo() == 4