code: def test_actual_results_cost_matrix(params, arr_desired):
      """Test that the actual results are the expected ones."""
      arr_actual = cost_matrix(x, y, **params)
      np.testing.assert_allclose(
          arr_actual, arr_desired, atol=1e-5, rtol=0.0
      )
  
imports: import numpy
  import pytest
  import re
  from math import sqrt
  from numba import njit
  from pyts.metrics.dtw import _square, _absolute, _check_input_dtw, _blurred_path_region, _return_path, _return_results, cost_matrix, accumulated_cost_matrix, _check_region, _dtw_classic, _dtw_region, _dtw_sakoechiba, _dtw_itakura, _dtw_multiscale, _dtw_fast
  from pyts.metrics import dtw, itakura_parallelogram, sakoe_chiba_band, show_options
label_desc: Use image node_id 6 for calling a global function with example usage: test_actual_results_cost_matrix(params, arr_desired) without return types