def methods_equivalent(meth1, meth2):

    return getattr(meth1, '__func__', meth1) is getattr(
        meth2, '__func__', meth2)
Return True if the two methods are the same implementation.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/util/langhelpers.py/methods_equivalent