def get_node_type_str(self):
    if (self.node_type == NodeType.regular_node):
        return 'regular node'
    elif (self.node_type == NodeType.data_node):
        return 'data node'
    elif (self.node_type == NodeType.method_node):
        return 'method node'
    else:
        assert False, ' Unhandled node type'
def get_node_type_str(self):
    if (self.node_type == NodeType.regular_node):
        return 'regular node'
    elif (self.node_type == NodeType.data_node):
        return 'data node'
    elif (self.node_type == NodeType.method_node):
        return 'method node'
    else:
        assert False, ' Unhandled node type'