code: def test_xla_distrib_single_node_spawn_n_procs():
      n = int(os.environ["NUM_TPU_WORKERS"])
      try:
          idist.spawn(
              "xla-tpu",
              _test_distrib_config,
              args=("xla-tpu", n, "xla"),
              nproc_per_node=n,
          )
      except SystemExit:
          pass
  
imports: import os
  import pytest
  import ignite.distributed
  from ignite.distributed.utils import has_xla_support
  from tests.ignite.distributed.utils import _test_distrib_all_gather, _test_distrib_all_gather_group, _test_distrib_all_reduce, _test_distrib_all_reduce_group, _test_distrib_barrier, _test_distrib_broadcast, _test_distrib_config, _test_distrib_new_group, _test_distrib_one_rank_only, _test_distrib_one_rank_only_with_engine, _test_sync
label_desc: Use image node_id 4 for calling a global function with example usage: test_xla_distrib_single_node_spawn_n_procs() without return types