code: def get_family(addr):
      return socket.getaddrinfo(addr, None)[0][0]
  
imports: from __future__ import absolute_import
  import os
  import sys
  import socket
  import struct
  import subprocess
  import argparse
  import time
  import logging
  from threading import Thread
label_desc: Use image node_id 2 for calling a global function with example usage: get_family(addr) and returns: socket