code: def _gloo_hvd_execute(func, args, np=1, do_init=False):
      try:
          # old API
          from horovod.run.runner import run
      except ImportError:
          # new API: https://github.com/horovod/horovod/pull/2099
          from horovod import run
  
      kwargs = dict(use_gloo=True, num_proc=np)
  
      if do_init:
          return run(_hvd_task_with_init, args=(func, args), **kwargs)
  
      return run(func, args=args, **kwargs)
  
imports: import functools
  import os
  import shutil
  import sys
  import tempfile
  import time
  from pathlib import Path
  import pytest
  import torch
  import torch.distributed
  import ignite.distributed
label_desc: Use image node_id 24 for calling a global function with example usage: _gloo_hvd_execute(func, args, np, do_init) and returns: run, run