def counted_init(init):
    if isShowMemory():
        def wrapped_init(self, *args, **kw):
            name = self.__class__.__name__
            assert type(name) is str

            if name not in counted_inits:
                counted_inits[name] = 0

            counted_inits[name] += 1

            init(self, *args, **kw)

        return wrapped_init
    else:
        return init
dataset/ETHPy150Open kayhayen/Nuitka/nuitka/utils/InstanceCounters.py/counted_init/original