code: def test_load_state_dict_integration():
      engine = Engine(lambda e, b: 1)
  
      state_dict = {"max_epochs": 100, "epoch_length": 120, "epoch": 5}
  
      engine.load_state_dict(state_dict)
      engine.add_event_handler(
          Events.ITERATION_COMPLETED, IterationCounter(5 * 120 + 1)
      )
      engine.add_event_handler(Events.EPOCH_COMPLETED, EpochCounter(6))
      data = range(120)
      engine.run(data)
  
file_path: ignite/tests/ignite/engine/test_engine_state_dict.py
imports: from collections.abc import Mapping
  import pytest
  import torch
  from ignite.engine import Engine, Events, State
  from tests.ignite.engine import BatchChecker, EpochCounter, IterationCounter
label_desc: Use image node_id 7 for calling a global function with example usage: test_load_state_dict_integration() without return types