def get_node(self, uid):
        level = self._uid_2_level(uid)
        self._level_check(level)
        
        #Check if we have an entry
        if len(self.table[level]):
            search = self.table[level]
        #Else find the closest node
        else:
            search = self.known
            
        close_node = None
        for node in search:
            if not close_node or uidlib.distance(node.uid, uid) < uidlib.distance(close_node.uid, uid):
                close_node = node
            
        return close_node
get closest node
dataset/ETHPy150Open c00w/gevent-dht/gevent_dht/finger.py/FingerTable.get_node