code: def measure_cost(repeat, f, *args, **kwargs):
      start = time.time()
      results = []
      for i in range(repeat):
          (f(*args, **kwargs)).wait_to_read()
      end = time.time()
      diff = end - start
      return diff / repeat
  
imports: import ctypes
  from mxnet.test_utils import *
  import os
  import time
  import argparse
  from mxnet.base import check_call, _LIB
label_desc: Use image node_id 1 for calling a global function with example usage: measure_cost(repeat, f) and returns: unknown