def dict_from_tokens(tokens, value):
    """Build a dict-tree from a list of tokens defining a unique branch within
    the tree.

    Args:
        tokens (list): A list of tokens defining a branch within the nested dict
        value (any): An object set as the leaf of a branch

    Returns:
        dict: A nested dictionary

    """

    if len(tokens) == 0:
        return value

    key = tokens.pop(0).lower()
    return {key: dict_from_tokens(tokens, value)}