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_integration, (device,), np=nproc, do_init=True
      )
  
imports: import os
  import nltk
  import pytest
  import rouge
  import torch
  import ignite.distributed
  from ignite.exceptions import NotComputableError
  from ignite.metrics.nlp import Rouge
  from ignite.metrics.nlp.rouge import compute_ngram_scores, RougeL, RougeN
  from .None import CorpusForTest
label_desc: Use image node_id 8 for calling a global function with example usage: test_distrib_hvd(gloo_hvd_executor) without return types