import ast
from typing import Any


def get_keyword_arg_value(
    node: ast.Call, keyword_name: str, default: Any = None
) -> Any:
    """Get a keyword arg value from a Call AST node

    Args:
        node: AST Call node, like a function call
        keyword_name: Name of the keyword argument
        default: Default value to return if the keyword was not found

    Returns:
        keyword argument value or default or None

    """
    for keyword in node.keywords:
        if keyword.arg == keyword_name:
            return keyword.value

    return default