code: def get_column_interpolator(method):
      interpolator = {
          "linear": _linear_interpolation,
          "index": _index_or_values_interpolation,
          "values": _index_or_values_interpolation,
      }.get(method, None)
      if not interpolator:
          raise ValueError(f"Interpolation method `{method}` not found")
      return interpolator
  
file_path: cudf/python/cudf/cudf/core/algorithms.py
imports: import warnings
  import cupy
  import numpy
  from cudf.core.column import as_column
  from cudf.core.copy_types import BooleanMask
  from cudf.core.index import RangeIndex, as_index
  from cudf.core.indexed_frame import IndexedFrame
  from cudf.core.scalar import Scalar
  from cudf.options import get_option
  from cudf.utils.dtypes import can_convert_to_column
label_desc: Use image node_id 4 for calling a global function with example usage: get_column_interpolator(method) and returns: interpolator