from functools import reduce


def dict_item(dictionary: dict, path: str):
    """Extracts dictionary item by the given path.

    Args:
        path: path to dictionary item. May point to nested elements.
            In such case dot is used to notate children nodes.
            E.g. "name.first".

    Returns:
        Dictionary element value.
    """
    return reduce(lambda d, key: d[key], path.split('.'), dictionary)