code: def _test_sync_as_hvd():
      import horovod.torch as hvd
  
      from ignite.distributed.comp_models.horovod import (
          _HorovodDistModel,
      )
  
      hvd.init()
      lrank = hvd.local_rank()
      if torch.cuda.is_available():
          torch.cuda.set_device(lrank)
  
      _test_sync(_HorovodDistModel)
  
      hvd.shutdown()
  
imports: import os
  import pytest
  import torch
  import ignite.distributed
  from ignite.distributed.utils import has_hvd_support
  from tests.ignite.distributed.utils import _test_distrib__get_max_length, _test_distrib_all_gather, _test_distrib_all_gather_group, _test_distrib_all_reduce, _test_distrib_all_reduce_group, _test_distrib_barrier, _test_distrib_broadcast, _test_distrib_config, _test_distrib_new_group, _test_distrib_one_rank_only, _test_distrib_one_rank_only_with_engine, _test_sync
label_desc: Use image node_id 6 for calling a global function with example usage: _test_sync_as_hvd() without return types