code: def bench_series_nsmallest(benchmark, series, n):
      benchmark(series.nsmallest, n)
  
imports: import pytest
  from config import cudf, cupy
  from utils import benchmark_with_object
label_desc: Use image node_id 3 for calling a global function with example usage: bench_series_nsmallest(benchmark, series, n) without return types