code: def get_local_ip_and_match(ip_list):
      import socket
  
      s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
      s.connect(("8.8.8.8", 80))
      this_ip = s.getsockname()[0]
      s.close()
      for _i, ip in enumerate(ip_list):
          if ip == this_ip:
              return _i
      return -1
  
imports: import torch
  import torch.distributed
  import torch.backends.cudnn
  import torch.multiprocessing
label_desc: Use image node_id 1 for calling a global function with example usage: get_local_ip_and_match(ip_list) and returns: unknown, _i