code: def test_get_pps_matrix(unittest, test_data):
      import dtale.views as views
  
      with app.test_client() as c:
          test_data, _ = views.format_data(test_data)
          build_data_inst({c.port: test_data})
          build_dtypes({c.port: views.build_dtypes_state(test_data)})
          response = c.get(
              "/dtale/correlations/{}".format(c.port),
              query_string=dict(pps=True),
          )
          response_data = response.json
          expected = [
              {"bar": 1, "column": "bar", "foo": 0, "security_id": 0},
              {"bar": 0, "column": "foo", "foo": 1, "security_id": 0},
              {
                  "bar": 0,
                  "column": "security_id",
                  "foo": 0,
                  "security_id": 1,
              },
          ]
          unittest.assertEqual(
              response_data["data"], expected, "should return scores"
          )
          pps_val = next(
              (
                  p
                  for p in response_data["pps"]
                  if p["y"] == "security_id" and p["x"] == "foo"
              ),
              None,
          )
          expected = {
              "baseline_score": 12.5,
              "case": "regression",
              "is_valid_score": "True",
              "metric": "mean absolute error",
              "model": "DecisionTreeRegressor()",
              "model_score": 12.635071,
              "ppscore": 0,
              "x": "foo",
              "y": "security_id",
          }
          unittest.assertEqual(
              pps_val, expected, "should return PPS information"
          )
          assert "import ppscore" in response_data["code"]
          assert (
              "corr_data = ppscore.matrix(corr_data)"
              in response_data["code"]
          )
  
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 3 for calling a global function with example usage: test_get_pps_matrix(unittest, test_data) without return types