code: def bench_take(benchmark, gather_how, fraction, frame_or_index):
      nr = len(frame_or_index)
      gather_map = make_gather_map(nr * fraction, nr, gather_how)
      benchmark(frame_or_index.take, gather_map)
  
file_path: cudf/python/cudf/benchmarks/API/bench_frame_or_index.py
imports: import operator
  import numpy
  import pytest
  from utils import benchmark_with_object, make_gather_map
label_desc: Use image node_id 1 for calling a global function with example usage: bench_take(benchmark, gather_how, fraction, frame_or_index) without return types