def create_node(self, path, data):

        path = path.decode("utf8")
        data = data.decode("utf8")
        parent_path, child_name = self._get_parent_path_and_child_name(path)
        parent = self._nodes.get(parent_path)

        if not parent:
            raise NoNodeException()

        children = parent.get_children()
        if child_name in children:
            raise NodeExistsException()

        child = datanode.DataNode(data)
        parent.add_child(child_name)
        self._nodes[path] = child
Add a new node to the tree.
dataset/ETHPy150Open ylamgarchal/chillaxd/chillaxd/datatree.py/DataTree.create_node