code: def test_find_binning_thresholds_regular_data():
      data = np.linspace(0, 10, 1001)
      bin_thresholds = _find_binning_thresholds(data, max_bins=10)
      assert_allclose(bin_thresholds, [1, 2, 3, 4, 5, 6, 7, 8, 9])
  
      bin_thresholds = _find_binning_thresholds(data, max_bins=5)
      assert_allclose(bin_thresholds, [2, 4, 6, 8])
  
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from sklearn.ensemble._hist_gradient_boosting.binning import _BinMapper, _find_binning_thresholds, _map_to_bins
  from sklearn.ensemble._hist_gradient_boosting.common import ALMOST_INF, X_BINNED_DTYPE, X_DTYPE
  from sklearn.utils._openmp_helpers import _openmp_effective_n_threads
label_desc: Use image node_id 1 for calling a global function with example usage: test_find_binning_thresholds_regular_data() without return types