code: def test_distrib_hvd(gloo_hvd_executor):
      nproc = (
          4
          if not torch.cuda.is_available()
          else torch.cuda.device_count()
      )
  
      gloo_hvd_executor(
          _test_frequency_with_engine,
          (None, 0.8, 1),
          np=nproc,
          do_init=True,
      )
      gloo_hvd_executor(
          _test_frequency_with_engine,
          (None, 0.8, 10),
          np=nproc,
          do_init=True,
      )
  
file_path: ignite/tests/ignite/metrics/test_frequency.py
imports: import os
  import sys
  import time
  import pytest
  import torch
  import ignite.distributed
  from ignite.engine import Engine, Events
  from ignite.metrics import Frequency
label_desc: Use image node_id 7 for calling a global function with example usage: test_distrib_hvd(gloo_hvd_executor) without return types