code: def nics_to_env_var(nics: List[str]) -> Dict[str, str]:
      """Converts a given list of available NICs to environment variables."""
      return {
          "HOROVOD_GLOO_IFACE": list(nics)[0],
          "NCCL_SOCKET_IFNAME": ",".join(nics),  # TODO
      }
  
file_path: horovod/horovod/ray/utils.py
imports: from typing import List, Optional, Callable, Any, Dict
  from contextlib import contextmanager
  import ray
  from horovod.runner.driver import driver_service
  from horovod.ray.driver_service import _driver_fn
  from horovod.runner.util import network
label_desc: Use image node_id 3 for calling a global function with example usage: nics_to_env_var(nics) and returns: dict