def METHOD_NAME(declaration: "Declaration", name: str):
    """Load declarations from CKAN plugin.
    """
    from ckan.plugins import IConfigDeclaration, PluginNotFoundException
    from ckan.plugins.core import _get_service
    try:
        plugin: Any = _get_service(name)
    except PluginNotFoundException:
        log.error("Plugin %s does not exists", name)
        return
    if not IConfigDeclaration.implemented_by(type(plugin)):
        log.error("Plugin %s does not declare config options", name)
        return
    plugin.declare_config_options(declaration, Key())