def add_node(self, node_id, name, labels):
        """Add the node with name and labels.

        Args:
            node_id: Id for the node.
            name: Name for the node.
            labels: Label for the node.

        Raises:
            NotImplementedError: When adding labels is not supported.
        """
        node = self.graph_db.get_or_create_indexed_node('Node', 'node_id', node_id, {'node_id': node_id, 'name': name})
        try:
            node.add_labels(*labels)
        except NotImplementedError:
            pass
def add_node ( self , node_id , name , labels ) : node = self . graph_db . get_or_create_indexed_node ( 'Node' , 'node_id' , node_id , { 'node_id' : node_id , 'name' : name } ) try : node . add_labels ( * labels ) except NotImplementedError : pass
Add the node with name and labels.

        Args:
            node_id: Id for the node.
            name: Name for the node.
            labels: Label for the node.

        Raises:
            NotImplementedError: When adding labels is not supported.