code: def get_addr_family(addr):
      res = socket.getaddrinfo(
          addr[0], addr[1], 0, 0, socket.IPPROTO_TCP
      )
      return res[0][0]
  
file_path: tvm/python/tvm/rpc/base.py
imports: import socket
  import time
  import json
  import errno
  import struct
  import random
  import logging
  from .._ffi.base import py_str
label_desc: Use image node_id 1 for calling a global function with example usage: get_addr_family(addr) and returns: res