code: def _get_reduce_fn(name):
      def wrapped(series):
          fn = getattr(series, name)
          return fn()
  
      return wrapped
  
file_path: cudf/python/dask_cudf/dask_cudf/tests/test_reductions.py
imports: import numpy
  import pandas
  import pytest
  from dask import dataframe
  import cudf
  import dask_cudf
label_desc: Use image node_id 2 for calling a global function with example usage: _get_reduce_fn(name) and returns: wrapped, fn