code: def _test__hvd_dist_model_create_from_backend_dist(
      backend, true_device
  ):
      model = _HorovodDistModel.create_from_backend(backend=backend)
  
      assert hvd.rank() > -1
  
      with pytest.raises(
          RuntimeError,
          match=r"Can not re-initialize Horovod if it is already initialized",
      ):
          _HorovodDistModel.create_from_backend(backend=backend)
  
      _assert_model(
          model,
          {
              "device": true_device,
              "local_rank": hvd.local_rank(),
              "rank": hvd.rank(),
              "world_size": hvd.size(),
              "node_index": 0,
              "nnodes": 1,
              "nproc_per_node": hvd.local_size(),
          },
      )
  
      model.finalize()
  
file_path: ignite/tests/ignite/distributed/comp_models/test_horovod.py
imports: import pytest
  import torch
  from ignite.distributed.comp_models import has_hvd_support
label_desc: Use image node_id 4 for calling a global function with example usage: _test__hvd_dist_model_create_from_backend_dist(backend, true_device) without return types