def _find(root: dict, word: str) -> dict:
    """Find the node after following the path in a trie given by {word}.

    :arg root: Root of the trie.
    :arg word: A word.

    :returns: The node if found, {} otherwise.
    """
    node = root

    for char in word:
        if char not in node:
            return {}
        node = node[char]

    return node