code: def test_attatch(dummy_evaluator, eos):
      eos.attach(dummy_evaluator)
      assert dummy_evaluator.has_event_handler(
          eos.reset, Events.EPOCH_STARTED
      )
      assert dummy_evaluator.has_event_handler(
          eos.update, Events.ITERATION_COMPLETED
      )
  
file_path: ignite/tests/ignite/handlers/test_stores.py
imports: import pytest
  from ignite.engine.engine import Engine, Events
  from ignite.handlers import EpochOutputStore
label_desc: Use image node_id 8 for calling a global function with example usage: test_attatch(dummy_evaluator, eos) without return types