code: def test_distrib_single_device_xla():
      _test_frequency_with_engine(
          workers=idist.get_world_size(), every=10
      )
  
file_path: ignite/tests/ignite/metrics/test_frequency.py
imports: import os
  import sys
  import time
  import pytest
  import torch
  import ignite.distributed
  from ignite.engine import Engine, Events
  from ignite.metrics import Frequency
label_desc: Use image node_id 8 for calling a global function with example usage: test_distrib_single_device_xla() without return types