code: def local_ip4_addr_list():
      """Return a set of IPv4 address"""
      nic = set()
  
      for ix in socket.if_nameindex():
          name = ix[1]
          s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
          ip = socket.inet_ntoa(
              fcntl.ioctl(
                  s.fileno(),
                  0x8915,  # SIOCGIFADDR
                  struct.pack("256s", name[:15].encode("UTF-8")),
              )[20:24]
          )
          nic.add(ip)
  
      return nic
  
file_path: ogb/examples/lsc/wikikg90m/dgl-ke-ogb-lsc/python/dglke/dist_train.py
imports: import os
  import stat
  import sys
  import subprocess
  import argparse
  import socket
  from .utils import CommonArgParser
label_desc: Use image node_id 2 for calling a global function with example usage: local_ip4_addr_list() and returns: nic