def create(self, name, **kwargs):
        if self._REGISTRY not in name:
            raise HookRegistryError(
                "Unknown hook name '%s' (available: %s)"
                % (name, ', '.join(self._REGISTRY.keys())))

        return self._REGISTRY[name](**kwargs)
dataset/ETHPy150Open rbarrois/mpdlcd/mpdlcd/mpdhooks.py/HookRegistry.create/swapped operands of `not in`