code: def test_df_corr(method):
      gdf = randomdata(100, {str(x): float for x in range(50)})
      pdf = gdf.to_pandas()
      got = gdf.corr(method)
      expected = pdf.corr(method)
      assert_eq(got, expected)
  
imports: from concurrent.futures import ThreadPoolExecutor
  import cupy
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.datasets import randomdata
  from cudf.testing._utils import _create_cudf_series_float64_default, _create_pandas_series_float64_default, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 19 for calling a global function with example usage: test_df_corr(method) without return types