code: def get_local_urls(port, prefix):
      """get urls of local machine"""
      url_list = []
      for _, info in psutil.net_if_addrs().items():
          for addr in info:
              if socket.AddressFamily.AF_INET == addr.family:
                  url_list.append(
                      "http://{0}:{1}{2}".format(
                          addr.address, port, prefix
                      )
                  )
      return url_list
  
file_path: nni/nni/tools/nnictl/url_utils.py
imports: import socket
  import psutil
label_desc: Use image node_id 12 for calling a global function with example usage: get_local_urls(port, prefix) and returns: url_list