code: def test_adding_multiple_event_handlers():
      mock_fn_1 = create_autospec(spec=lambda x: None)
      mock_fn_2 = create_autospec(spec=lambda x: None)
  
      engine = DummyEngine()
      handlers = [mock_fn_1, mock_fn_2]
      for handler in handlers:
          engine.add_event_handler(Events.STARTED, handler)
  
      engine.run(1)
      for handler in handlers:
          handler.assert_called_once_with(engine)
  
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 5 for calling a global function with example usage: test_adding_multiple_event_handlers() without return types