code: def create_run_env_vars(server_ip, nics, port, elastic=False):
      run_envs = {
          "HOROVOD_GLOO_RENDEZVOUS_ADDR": server_ip,
          "HOROVOD_GLOO_RENDEZVOUS_PORT": port,
          "HOROVOD_CONTROLLER": "gloo",
          "HOROVOD_CPU_OPERATIONS": "gloo",
          "HOROVOD_GLOO_IFACE": list(nics)[
              0
          ],  # TODO: add multiple ifaces in future
          "NCCL_SOCKET_IFNAME": ",".join(nics),
      }
      if elastic:
          run_envs["HOROVOD_ELASTIC"] = "1"
      return run_envs
  
imports: import copy
  import errno
  import math
  import os
  import signal
  import sys
  import threading
  import time
  from shlex import quote
  from typing import Optional, Any
  from horovod.runner.common.util import env, safe_shell_exec
  from horovod.runner.common.util.hosts import get_host_assignments, parse_hosts
  from horovod.runner.driver import driver_service
  from horovod.runner.elastic.driver import ElasticDriver
  from horovod.runner.elastic.rendezvous import create_rendezvous_handler
  from horovod.runner.http.http_client import read_data_from_kvstore, put_data_into_kvstore
  from horovod.runner.http.http_server import KVStoreServer, RendezvousServer
  from horovod.runner.util import network, threads
  from horovod.runner.util.remote import get_remote_command
label_desc: Use image node_id 7 for calling a global function with example usage: create_run_env_vars(server_ip, nics, port, elastic) and returns: run_envs