code: def latency_client(addr, nb_pings, interval):
      sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
      try:
          _time = time.time
          _sleep = time.sleep
  
          def _ping():
              _sendto(sock, "%r\n" % _time(), addr)
  
          # The first ping signals the parent process that we are ready.
          _ping()
          # We give the parent a bit of time to notice.
          _sleep(1.0)
          for i in range(nb_pings):
              _sleep(interval)
              _ping()
          _sendto(sock, LAT_END + "\n", addr)
      finally:
          sock.close()
  
imports: from __future__ import division
  from __future__ import print_function
  import time
  import os
  import sys
  import itertools
  import threading
  import subprocess
  import socket
  from optparse import OptionParser, SUPPRESS_HELP
  import platform
label_desc: Use image node_id 11 for calling a global function with example usage: latency_client(addr, nb_pings, interval) without return types