human
I wrote the below code

    numtotal = [0]
    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.__dbclass__.__name__] = num
            else:
                get_recurse(subclasses)
    get_recurse(SharedMemoryModel.__subclasses__())
    return (numtotal[0], classdict)

What's a good function header?
assistant
#Here's a good function header.

def cache_size(mb=True):