code: def test_resampling_frequency_conversion(
      in_freq, sampling_freq, out_freq
  ):
      # test that we cast to the appropriate frequency
      # when resampling:
      pdf = pd.DataFrame(
          {
              "x": np.random.randn(100),
              "y": pd.date_range("1/1/2012", freq=in_freq, periods=100),
          }
      )
      gdf = cudf.from_pandas(pdf)
      expect = pdf.resample(sampling_freq, on="y").mean()
      got = gdf.resample(sampling_freq, on="y").mean()
      assert_resample_results_equal(expect, got)
  
      assert got.index.dtype == np.dtype(f"datetime64[{out_freq}]")
  
file_path: cudf/python/cudf/cudf/tests/test_resampling.py
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 11 for calling a global function with example usage: test_resampling_frequency_conversion(in_freq, sampling_freq, out_freq) without return types