

def get(self, parts=None):
    if parts:
        return self.__sub_counters[parts[0]].get(parts[1:])
    if self.__is_parent_node():
        return max((v.get() for v in self.__sub_counters.itervalues()))
    return self.__counter

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py _NestedCounter.get/original