import ast
from typing import Dict


def _get_keyword_args_by_names(
    call: ast.Call,
    *names: str,
) -> Dict[str, ast.expr]:
    """Returns keywords of ``call`` by specified ``names``."""
    keyword_args = {}
    for keyword in call.keywords:
        if keyword.arg in names:
            keyword_args[keyword.arg] = keyword.value
    return keyword_args