code: def test__native_dist_model():
      available_backends = _NativeDistModel.available_backends
  
      if dist.is_nccl_available():
          assert "nccl" in available_backends
      else:
          assert "nccl" not in available_backends
  
      if dist.is_gloo_available():
          assert "gloo" in available_backends
      else:
          assert "gloo" not in available_backends
  
      if dist.is_mpi_available():
          assert "mpi" in available_backends
      else:
          assert "mpi" not in available_backends
  
      with pytest.raises(ValueError, match=r"Backend should be one of"):
          _NativeDistModel.create_from_backend("abc")
  
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 3 for calling a global function with example usage: test__native_dist_model() without return types