def find_node_from_path(data_dict, pathstr):
    """
    Gets a specific leaf/branch of a nested dict, by passing a `.`-separated
    string of keys. NB: Requires all accessed keys in `dataDict` to be `str`!

    Parameters:
        data_dict (dict): potentially nested, keyed on strings
        pathstr (str):  dot-separated key path to traverse/retrieve

    Returns:
        object
    """
    maplist = pathstr.split(".")
    first, rest = maplist[0], ".".join(maplist[1:])
    if rest:
        # if `rest` is not empty, run the function recursively
        return find_node_from_path(data_dict[first], rest)

    return data_dict[first]