code: def timer(message):
      cupy.cuda.Stream.null.synchronize()
      start = time.time()
      yield
      cupy.cuda.Stream.null.synchronize()
      end = time.time()
      print("%s:  %f sec" % (message, end - start))
  
file_path: cupy/examples/kmeans/kmeans.py
imports: import argparse
  import contextlib
  import time
  import cupy
  import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: timer(message) without return types