from typing import Dict
from typing import Any


def get_dot_value(source: Dict, key: str) -> Any:
    """Returns the end value from `source` dictionary given `key` traversal."""
    keys = key.split(".")
    value = source
    for _key in keys:
        if not isinstance(value, dict):
            return value
        value = value.get(_key)
    return value