def generate_events(self, event):
        if not self._ready or self._done:
            return

        if self._counter < 10:
            self.fire(Event.create("hello"))
        else:
            self.fire(Event.create("done"))
        event.reduce_time_left(0)
dataset/ETHPy150Open circuits/circuits/tests/core/test_generate_events.py/App.generate_events/original