code: 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.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 1 for calling a global function with example usage: test_markov_transition_matrix(X_binned, n_bins, arr_desired) without return types