def METHOD_NAME(plugin_registry):
    class FooBarPlugin:
        @hookimpl
        def get_a_joke(self, number: int):
            return "No joke."
    plugin_registry.plugin_manager().set_blocked("blocked-name")
    plugin_registry.load_plugin_with_hooks_impl(FooBarPlugin(), "blocked-name")