code: def test_correlation_analysis(unittest, rolling_data):
      import dtale.views as views
  
      with app.test_client() as c:
          df, _ = views.format_data(rolling_data)
          build_data_inst({c.port: df})
          build_dtypes({c.port: views.build_dtypes_state(df)})
          response = c.get("/dtale/corr-analysis/{}".format(c.port))
          response_data = response.get_json()
          ranks = response_data["ranks"]
          corrs = response_data["corrs"]
          assert len(ranks) == 5
          assert all(r["column"] in corrs for r in ranks)
          assert all(r["missing"] == 0 for r in ranks)
  
file_path: dtale/tests/dtale/correlations/test_views.py
imports: import numpy
  import pandas
  import json
  import platform
  import pytest
  from pkg_resources import parse_version
  import dtale.pandas_util
  from dtale.charts.utils import CHART_POINTS_LIMIT
  from tests.dtale.test_views import app, build_ts_data
  from tests.dtale import build_data_inst, build_settings, build_dtypes
label_desc: Use image node_id 1 for calling a global function with example usage: test_correlation_analysis(unittest, rolling_data) without return types