code: def test__setup_ddp_vars_from_slurm_env(environ, expected):
      ddp_keys = [
          "RANK",
          "LOCAL_RANK",
          "WORLD_SIZE",
          "MASTER_ADDR",
          "MASTER_PORT",
      ]
      ddp_vars = _setup_ddp_vars_from_slurm_env(environ)
      for key, value in zip(ddp_keys, expected):
          assert key in ddp_vars
          assert ddp_vars[key] == value
  
imports: import os
  import pytest
  import torch
  import torch.distributed
  from ignite.distributed.comp_models import has_native_dist_support
label_desc: Use image node_id 29 for calling a global function with example usage: test__setup_ddp_vars_from_slurm_env(environ, expected) without return types