code: def test_smoke_test_check_idist_parallel_spawn_multinode_n_procs_gloo(
      exec_filepath,
  ):
      # Just a smoke test from check_idist_parallel.py for an emulated multi-node configuration
      cmd1 = "export CUDA_VISIBLE_DEVICES= && "
      cmd1 += f'bash -c "{sys.executable} {exec_filepath} --backend=gloo --nproc_per_node=2 '
      cmd1 += '--nnodes=2 --node_rank=0 --master_addr=localhost --master_port=3344 &"'
      os.system(cmd1)
  
      cmd2 = [
          sys.executable,
          exec_filepath,
          "--backend=gloo",
          "--nproc_per_node=2",
          "--nnodes=2",
          "--node_rank=1",
          "--master_addr=localhost",
          "--master_port=3344",
      ]
      env = dict(os.environ)
      env["CUDA_VISIBLE_DEVICES"] = ""
      out = execute(cmd2, env=env)
  
      assert "backend=gloo" in out
      assert "nproc_per_node: 2" in out
      assert "nnodes: 2" in out
      assert "master_addr: localhost" in out
      assert "master_port: 3344" in out
      assert "End of run" in out
  
imports: import os
  import subprocess
  import sys
  from pathlib import Path
  import pytest
  import torch
  from packaging.version import Version
  import ignite.distributed
  from ignite.distributed.utils import has_hvd_support, has_native_dist_support, has_xla_support
label_desc: Use image node_id 11 for calling a global function with example usage: test_smoke_test_check_idist_parallel_spawn_multinode_n_procs_gloo(exec_filepath) without return types