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.)
Test that the actual results are the expected ones.
pyts/image/tests/test_mtf.py