from functools import reduce


def _deep_get(dictionary, *keys):
    """
    Get a deeply nested value from a dictionary, returning None if any key
    in the chain is not found.
    """
    return reduce(lambda d, key: d.get(key) if d else None, keys, dictionary)