def METHOD_NAME(
    notification: BaseNotification,
    recipient: RpcActor,
    shared_context: Mapping[str, Any] | None = None,
    extra_context_by_actor: Mapping[RpcActor, Mapping[str, Any]] | None = None,
) -> Mapping[str, Any]:
    # TODO: move context logic to single notification class method
    extra_context = (
        extra_context_by_actor[recipient] if extra_context_by_actor and recipient else {}
    )
    context = get_context(notification, recipient, shared_context or {}, extra_context)
    return get_builder_args_from_context(notification, context)