def set(self, key, value):
        if key not in self._stats:
            raise KeyNotFound(key)

        self._stats[key] = value
dataset/ETHPy150Open jookies/jasmin/jasmin/tools/stats.py/Stats.set/original