code: def test_uniform_bins(
      timestamp_min, timestamp_max, n_bins, arr_desired
  ):
      """Test that the actual results are the expected ones."""
      timestamp_min = np.asarray(timestamp_min)
      timestamp_max = np.asarray(timestamp_max)
      n_timestamps = timestamp_min.size
      arr_actual = _uniform_bins(
          timestamp_min, timestamp_max, n_timestamps, n_bins
      )
      np.testing.assert_allclose(
          arr_actual, arr_desired, atol=1e-5, rtol=0.0
      )
  
file_path: pyts/pyts/approximation/tests/test_mcb.py
imports: import numpy
  import pytest
  import re
  from pyts.approximation.mcb import _uniform_bins, _digitize
  from pyts.approximation import MultipleCoefficientBinning
label_desc: Use image node_id 1 for calling a global function with example usage: test_uniform_bins(timestamp_min, timestamp_max, n_bins, arr_desired) without return types