code: def test_data(self):
      # initialize Horovod
      hvd.init()
      if torch.cuda.is_available():
          torch.cuda.set_device(hvd.local_rank())
      self._run()
  
file_path: MONAI/tests/hvd_evenly_divisible_all_gather.py
imports: from __future__ import annotations
  import torch
  from monai.utils import evenly_divisible_all_gather
  from monai.utils.module import optional_import
  from tests.utils import assert_allclose
label_desc: Use image node_id 1 for calling the HvdEvenlyDivisibleAllGather obj's underlying member method code with example usage: obj.test_data() without return types