code: def bench_iloc_getitem_mask(benchmark, dataframe, frac):
      rs = numpy.random.RandomState(seed=42)
      n = int(len(dataframe) * frac)
      values = rs.choice(len(dataframe), size=n, replace=False)
      mask = numpy.zeros(len(dataframe), dtype=bool)
      mask[values] = True
      benchmark(dataframe.iloc.__getitem__, mask)
  
imports: import string
  import numpy
  import pytest
  import pytest_cases
  from config import cudf, cupy
  from utils import benchmark_with_object
label_desc: Use image node_id 8 for calling a global function with example usage: bench_iloc_getitem_mask(benchmark, dataframe, frac) without return types