code: def run(self, num_times):
      self.state = State()
      for _ in range(num_times):
          self.fire_event(Events.STARTED)
          self.fire_event(Events.COMPLETED)
      return self.state
  
imports: import functools
  import gc
  from unittest.mock import call, create_autospec, MagicMock
  import pytest
  from pytest import raises
  from ignite.engine import Engine, Events, State
  from ignite.engine.events import EventsList
label_desc: Use image node_id 2 for calling the DummyEngine obj's underlying member method code with example usage: obj.run(num_times) and returns: self