code: def _test__native_dist_model_create_from_backend_dist(
      init_method, local_rank, rank, world_size, backend, true_device
  ):
      import os
      from datetime import timedelta
  
      timeout = timedelta(seconds=20)
      os.environ["RANK"] = f"{rank}"
  
      assert "MASTER_ADDR" not in os.environ
      assert "MASTER_PORT" not in os.environ
  
      model = _NativeDistModel.create_from_backend(
          backend=backend, timeout=timeout, init_method=init_method
      )
  
      assert dist.is_available() and dist.is_initialized()
      assert dist.get_backend() == backend
  
      with pytest.raises(
          RuntimeError,
          match=r"Can not create new distributed process group if default one is",
      ):
          _NativeDistModel.create_from_backend(
              backend=backend, timeout=timeout
          )
  
      _assert_model(
          model,
          {
              "device": true_device,
              "local_rank": local_rank,
              "rank": rank,
              "world_size": world_size,
              "node_index": 0,
              "nnodes": 1,
              "nproc_per_node": world_size,
          },
      )
  
      if init_method is None:
          assert model._init_method == "env://"
      else:
          assert model._init_method == init_method
  
      model.finalize()
  
      del os.environ["RANK"]
  
      assert "MASTER_ADDR" not in os.environ
      assert "MASTER_PORT" not in os.environ
      assert "RANK" not in os.environ
  
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 9 for calling a global function with example usage: _test__native_dist_model_create_from_backend_dist(init_method, local_rank, rank, world_size, backend, true_device) without return types