def get_path_to_node(self, id_: str, mode: str='nodes') -> list:
    "\n        get path from root to the node\n        :param str id_: id of the node you want to reach from root\n        :param str mode: mode of return type, 'nodes' - make path with nodes id, 'moves' - make path with player choices\n        "
    path_t = []
    node = id_
    while (node is not 'root'):
        if (mode == 'nodes'):
            path_t.insert(0, node)
        elif (mode == 'moves'):
            parent_ = self.get_parent(node)
            path_t.insert(0, self._nodes[parent_]['children'][node])
        else:
            raise ValueError('mode variable is not "nodes" nor "moves"')
        node = self.get_parent(node)
    if (mode == 'nodes'):
        path_t.insert(0, 'root')
    return path_t
get path from root to the node
:param str id_: id of the node you want to reach from root
:param str mode: mode of return type, 'nodes' - make path with nodes id, 'moves' - make path with player choices
def get_path_to_node(self, id_: str, mode: str='nodes') -> list:
    "\n        get path from root to the node\n        :param str id_: id of the node you want to reach from root\n        :param str mode: mode of return type, 'nodes' - make path with nodes id, 'moves' - make path with player choices\n        "
    path_t = []
    node = id_
    while (node is not 'root'):
        if (mode == 'nodes'):
            path_t.insert(0, node)
        elif (mode == 'moves'):
            parent_ = self.get_parent(node)
            path_t.insert(0, self._nodes[parent_]['children'][node])
        else:
            raise ValueError('mode variable is not "nodes" nor "moves"')
        node = self.get_parent(node)
    if (mode == 'nodes'):
        path_t.insert(0, 'root')
    return path_t