def test_markov_transition_matrix(X_binned, n_bins, arr_desired):
    """Test that the actual results are the expected ones."""
    X_binned = np.asarray(X_binned)
    n_samples, n_timestamps = X_binned.shape
    arr_actual = _markov_transition_matrix(
        X_binned, n_samples, n_timestamps, n_bins)
    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