from typing import Any


def get_from_dict(dct: dict, key: tuple[str, ...]) -> Any:
    """Get value from dict using a multi-part key"""

    data: Any = dct
    for part in key:
        assert isinstance(data, dict)
        data = data[part]
    return data