code: def test_multinode_distrib_gloo_cpu_or_gpu(
      distributed_context_multi_node_gloo,
  ):
      device = idist.device()
      _test_distrib_with_engine_early_stopping(device)
      _test_distrib_integration_engine_early_stopping(device)
  
imports: import os
  import pytest
  import torch
  import ignite.distributed
  from ignite.engine import Engine, Events
  from ignite.handlers import EarlyStopping
label_desc: Use image node_id 18 for calling a global function with example usage: test_multinode_distrib_gloo_cpu_or_gpu(distributed_context_multi_node_gloo) without return types