code: def get_local_host_addresses():
      local_addresses = set()
      for intf_info_list in psutil.net_if_addrs().values():
          for intf_info in intf_info_list:
              if intf_info.family == socket.AF_INET:
                  local_addresses.add(intf_info.address)
      return local_addresses
  
file_path: horovod/horovod/runner/util/network.py
imports: import psutil
  import random
  import socket
  from socket import AF_INET
  from psutil import net_if_addrs
  from horovod.common.util import _cache
  from horovod.runner.util import threads
label_desc: Use image node_id 1 for calling a global function with example usage: get_local_host_addresses() and returns: local_addresses