def __init__(self, node_type, key):
    self.node_type = node_type
    self.id = key
    assert isinstance(key, int)
def __init__(self, node_type, key):
    self.node_type = node_type
    self.id = key
    assert isinstance(key, int)