code: def test_corr(fn, method):
      df = mkts((120, 5))
      df_expected = df.copy().corr(method=method)
      df_actual = fn(df.copy()).result
      assert isinstance(df_actual, pd.DataFrame)
      assert df_actual.equals(df_expected)
  
file_path: tslumen/tests/unit/profile/test_correlation.py
imports: import pytest
  import mock
  import re
  from tests.unit.profile.base import *
  from tslumen.profile.correlation import acf, acf_1d, acf_2d, pacf, pacf_1d, pacf_2d, lag_corr, corr_pearson, corr_kendall, corr_spearman, granger_causality
label_desc: Use image node_id 4 for calling a global function with example usage: test_corr(fn, method) without return types