code: def measure_cost(repeat, f, *args, **kwargs):
      # start bench
      start = time.time()
      results = []
      for i in range(repeat):
          results.append(f(*args, **kwargs))
      for result in results:
          result.wait_to_read()
      end = time.time()
      diff = end - start
      return diff / repeat
  
file_path: mxnet/benchmark/python/sparse/sparse_op.py
imports: from __future__ import print_function
  import ctypes
  from mxnet.test_utils import *
  import scipy.sparse
  import os
  import time
  import argparse
  from mxnet.base import check_call, _LIB
  from mxnet.test_utils import get_bz2_data
  from util import estimate_density
label_desc: Use image node_id 1 for calling a global function with example usage: measure_cost(repeat, f) and returns: unknown