code: def test_interpolate_dataframe(data, method, axis):
      # Pandas interpolate methods do not seem to work
      # with nullable dtypes yet, so this method treats
      # NAs as NaNs
      # https://github.com/pandas-dev/pandas/issues/40252
      gdf = cudf.DataFrame(data)
      pdf = gdf.to_pandas()
  
      expect = pdf.interpolate(method=method, axis=axis)
      got = gdf.interpolate(method=method, axis=axis)
      assert_eq(expect, got)
  
imports: import pytest
  import cudf
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_interpolate_dataframe(data, method, axis) without return types