code: def test_distrib_hvd(gloo_hvd_executor):
      device = torch.device(
          "cpu" if not torch.cuda.is_available() else "cuda"
      )
      nproc = (
          4
          if not torch.cuda.is_available()
          else torch.cuda.device_count()
      )
  
      gloo_hvd_executor(
          _test_distrib_compute, (device,), np=nproc, do_init=True
      )
      gloo_hvd_executor(
          _test_distrib_integration, (device,), np=nproc, do_init=True
      )
  
imports: import os
  import numpy
  import pytest
  import torch
  import ignite.distributed
  from ignite.contrib.metrics.regression import FractionalAbsoluteError
  from ignite.engine import Engine
  from ignite.exceptions import NotComputableError
label_desc: Use image node_id 9 for calling a global function with example usage: test_distrib_hvd(gloo_hvd_executor) without return types