code: def _get_local_host_addresses():
      local_addresses = []
      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.append(intf_info.address)
      return local_addresses
  
file_path: bluefog/bluefog/run/network_util.py
imports: import concurrent.futures
  import io
  import os
  import re
  import socket
  import psutil
  from bluefog.run.horovodrun.common.util import safe_shell_exec
label_desc: Use image node_id 4 for calling a global function with example usage: _get_local_host_addresses() and returns: local_addresses