code: def benchmark_func(func, n_times=10):
      def wrap_func(*args, **kwargs):
          time_ls = []
          # ignore 1st run
          # and return other runs
          for _ in range(0, n_times + 1):
              t1 = perf_counter_ns()
              result = func(*args, **kwargs)
              t2 = perf_counter_ns()
              time_ls.append(t2 - t1)
          return result, time_ls[1:]
  
      return wrap_func
  
file_path: cugraph/benchmarks/shared/build_cugraph_ucx/test_client_bandwidth.py
imports: from dask_cuda import LocalCUDACluster
  from dask.distributed import Client, wait
  import cupy
  import numpy
  import cudf
  import dask_cudf
  import rmm
  from time import perf_counter_ns
label_desc: Use image node_id 1 for calling a global function with example usage: benchmark_func(func, n_times) and returns: wrap_func, result,  time_ls