def METHOD_NAME(
    ctx: Context,
    actor: Actor,
    *args,
    **kwargs,
) -> Context:
    processed_node = ctx.a_s.get("processed_node", ctx.a_s["next_node"])
    if callable(processed_node.response):
        processed_node.response = processed_node.response(ctx, actor)
    ctx.a_s["processed_node"] = processed_node
    return ctx