from typing import Any


def get_dict_value(d: dict, keys: list) -> Any:
    """Get dict value with keys.

    Args:
        d (dict): Dict.
        keys (list): Keys.

    Raises:
        KeyError

    Returns:
        Any: Result.
    """
    for k in keys:
        # Raise KeyError.
        d2 = d[k]

        if d2 is None:
            break
        else:
            d = d2
    return d