code: def test_actual_results_gasf(X_cos, X_sin, arr_desired):
      """Test that the actual results are the expected ones."""
      X_cos = np.asarray(X_cos)
      X_sin = np.asarray(X_sin)
      arr_actual = _gasf(
          X_cos,
          X_sin,
          n_samples=X_cos.shape[0],
          image_size=X_cos.shape[1],
      )
      np.testing.assert_allclose(
          arr_actual, arr_desired, atol=1e-5, rtol=0.0
      )
  
file_path: pyts/pyts/image/tests/test_gaf.py
imports: import numpy
  import pytest
  import re
  from pyts.image.gaf import _gasf, _gadf
  from pyts.image import GramianAngularField
label_desc: Use image node_id 1 for calling a global function with example usage: test_actual_results_gasf(X_cos, X_sin, arr_desired) without return types