code: def print_time(s, start_time):
      """Take a start time, print elapsed duration, and return a new time."""
      print(
          "%s, time %ds, %s."
          % (s, (time.time() - start_time), time.ctime())
      )
      sys.stdout.flush()
      return time.time()
  
imports: from __future__ import print_function
  import codecs
  import collections
  import json
  import math
  import os
  import sys
  import time
  from distutils import version
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: print_time(s, start_time) and returns: time