code: def test_dataframe_corr(setup):
      rs = np.random.RandomState(0)
      raw = rs.rand(20, 10)
      raw = pd.DataFrame(
          np.where(raw > 0.4, raw, np.nan), columns=list("ABCDEFGHIJ")
      )
      raw["k"] = pd.Series(["aaa"] * 20)
  
      df = DataFrame(raw)
  
      result = df.corr()
      pd.testing.assert_frame_equal(
          result.execute().fetch(), raw.corr()
      )
  
      result = df.corr(method="kendall")
      pd.testing.assert_frame_equal(
          result.execute().fetch(), raw.corr(method="kendall")
      )
  
      df = DataFrame(raw, chunk_size=6)
  
      with pytest.raises(Exception):
          df.corr(method="kendall").execute()
  
      result = df.corr()
      pd.testing.assert_frame_equal(
          result.execute().fetch(), raw.corr()
      )
  
      result = df.corr(min_periods=7)
      pd.testing.assert_frame_equal(
          result.execute().fetch(), raw.corr(min_periods=7)
      )
  
file_path: mars/mars/dataframe/statistics/tests/test_statistics_execution.py
imports: import numpy
  import pandas
  import pytest
  from ....tensor import tensor
  from ...None import Series, DataFrame
label_desc: Use image node_id 3 for calling a global function with example usage: test_dataframe_corr(setup) without return types