code: def _check_interpolation_as_method(method, interpolation, fname):
      # Deprecated NumPy 1.22, 2021-11-08
      warnings.warn(
          f"the `interpolation=` argument to {fname} was renamed to "
          "`method=`, which has additional options.\n"
          "Users of the modes 'nearest', 'lower', 'higher', or "
          "'midpoint' are encouraged to review the method they. "
          "(Deprecated NumPy 1.22)",
          DeprecationWarning,
          stacklevel=3,
      )
      if method != "linear":
          # sanity check, we assume this basically never happens
          raise TypeError(
              "You shall not pass both `method` and `interpolation`!\n"
              "(`interpolation` is Deprecated in favor of `method`)"
          )
      return interpolation
  
file_path: cupy/cupy/_statistics/order.py
imports: import warnings
  import cupy
  from cupy import _core
  from cupy._core import _routines_statistics
  from cupy._core import _fusion_thread_local
  from cupy._logic import content
label_desc: Use image node_id 10 for calling a global function with example usage: _check_interpolation_as_method(method, interpolation, fname) and returns: interpolation