code: def test_interpolate_series_values_or_index(data, index, method):
      gsr = cudf.Series(data, index=index)
      psr = gsr.to_pandas()
  
      expect = psr.interpolate(method=method)
      got = gsr.interpolate(method=method)
  
      assert_eq(expect, got, check_dtype=psr.dtype != "object")
  
imports: import pytest
  import cudf
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_interpolate_series_values_or_index(data, index, method) without return types