def cache_size(mb=True):
    numtotal = [0] # use mutable to keep reference through recursion
    classdict = {}
    def get_recurse(submodels):
        for submodel in submodels:
            subclasses = submodel.__subclasses__()
            if not subclasses:
                num = len(submodel.get_all_cached_instances())
                numtotal[0] += num
                classdict[submodel.__name__] = num
            else:
                get_recurse(subclasses)
    get_recurse(SharedMemoryModel.__subclasses__())
    return numtotal[0], classdict
Checks whether a ensemble's status is FINISHED.
dataset/ETHPy150Open evennia/evennia/evennia/utils/idmapper/models.py/cache_size--crossover with--dataset/ETHPy150Open bigmlcom/python/bigml/ensemblehandler.py/EnsembleHandler.ensemble_is_ready