code: def test_aggregated_markov_transition_field(
      image_size, start, end, X_mtf, arr_desired
  ):
      """Test that the actual results are the expected ones."""
      X_mtf = np.asarray(X_mtf)
      start = np.asarray(start)
      end = np.asarray(end)
      n_samples, _ = X_mtf.shape[:2]
      arr_actual = _aggregated_markov_transition_field(
          X_mtf, n_samples, image_size, start, end
      )
      np.testing.assert_allclose(
          arr_actual, arr_desired, atol=1e-5, rtol=0.0
      )
  
file_path: pyts/pyts/image/tests/test_mtf.py
imports: import numpy
  import pytest
  import re
  from pyts.image.mtf import _markov_transition_matrix, _markov_transition_field, _aggregated_markov_transition_field
  from pyts.image import MarkovTransitionField
label_desc: Use image node_id 3 for calling a global function with example usage: test_aggregated_markov_transition_field(image_size, start, end, X_mtf, arr_desired) without return types