code: def test_distrib_single_device_xla():
      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 20 for calling a global function with example usage: test_distrib_single_device_xla() without return types