code: def test_actual_results_return_results(params, res_desired):
      """Test that the actual results are the expected ones."""
      res_actual = _return_results(
          dtw_dist=2,
          cost_mat=[[2]],
          acc_cost_mat=np.asarray([[3]]),
          **params,
      )
      if isinstance(res_desired, tuple):
          for actual, desired in zip(res_actual, res_desired):
              np.testing.assert_allclose(actual, desired)
      else:
          np.testing.assert_allclose(res_actual, res_desired)
  
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 10 for calling a global function with example usage: test_actual_results_return_results(params, res_desired) without return types