@classmethod
    def __subclasshook__(cls, klass):

        if not cls.__abstractmethods__:
            return NotImplemented

        for method in cls.__abstractmethods__:
            if any(method in base.__dict__ for base in klass.__mro__):
                continue
            return NotImplemented
        return True
Checking plugin class.
dataset/ETHPy150Open openstack/neutron/neutron/api/extensions.py/PluginInterface.__subclasshook__