code: def benchmark(func, args, n_run):
      times = []
      for _ in range(n_run):
          start = cp.cuda.Event()
          end = cp.cuda.Event()
          start.record()
          func(*args)
          end.record()
          end.synchronize()
          times.append(
              cp.cuda.get_elapsed_time(start, end)
          )  # milliseconds
      return times
  
label_desc: Use image node_id 2 for calling a global function with example usage: benchmark(func, args, n_run) and returns: times