def get_node_from_id(self, id):
    if (id in self.data_nodes):
        return self.data_nodes[id]
    elif (id in self.method_nodes):
        return self.method_nodes[id]
    elif (id in self.regular_nodes):
        return self.regular_nodes[id]
    else:
        assert False, ('ID: %d not found' % id)
def get_node_from_id(self, id):
    if (id in self.data_nodes):
        return self.data_nodes[id]
    elif (id in self.method_nodes):
        return self.method_nodes[id]
    elif (id in self.regular_nodes):
        return self.regular_nodes[id]
    else:
        assert False, ('ID: %d not found' % id)