code: def test_uniform_bins(sample_min, sample_max, n_bins, arr_desired):
      """Test '_uniform_bins' function."""
      arr_actual = _uniform_bins(
          sample_min,
          sample_max,
          n_samples=sample_min.size,
          n_bins=n_bins,
      )
      np.testing.assert_array_equal(arr_actual, arr_desired)
  
file_path: pyts/pyts/preprocessing/tests/test_discretizer.py
imports: import numpy
  import pytest
  import re
  from pyts.preprocessing.discretizer import _uniform_bins, _digitize, _reshape_with_nan
  from pyts.preprocessing import KBinsDiscretizer
label_desc: Use image node_id 1 for calling a global function with example usage: test_uniform_bins(sample_min, sample_max, n_bins, arr_desired) without return types