code: def bench_get_dummies_high_cardinality(
      benchmark, size, cardinality, dtype
  ):
      """Benchmark when the cardinality of column to encode is high."""
      df = cudf.DataFrame(
          {
              "col": cudf.Series(
                  cupy.random.randint(
                      low=0, high=cardinality, size=size
                  )
              ).astype("category")
          }
      )
      benchmark(cudf.get_dummies, df, columns=["col"], dtype=dtype)
  
file_path: cudf/python/cudf/benchmarks/API/bench_functions.py
imports: import numpy
  import pytest
  import pytest_cases
  from config import NUM_ROWS, cudf, cupy
  from utils import benchmark_with_object
label_desc: Use image node_id 2 for calling a global function with example usage: bench_get_dummies_high_cardinality(benchmark, size, cardinality, dtype) without return types