import typing
from functools import reduce
import operator


def get_by_path(root: dict, path_list: typing.List[str]):
    """
    Access a nested object in root by item sequence.
    :param dict_object: the dictionary to access
    :param path_list: the list of strings containing the path
    :return the value of the path
    """
    return reduce(operator.getitem, path_list, root)