def METHOD_NAME(attribute=None):
    """
    Returns an empty dict and a @register decorator.
    """
    registry = {}
    def register(key):
        def decorator(func):
            registry[key] = func
            if attribute:
                setattr(func, attribute, key)
            return func
        return decorator
    return registry, register