code: def test_identical_bin_edges():
      """Test that an error is raised when two consecutive bins are equal."""
      msg_error = (
          "At least two consecutive quantiles are equal. "
          "Consider trying with a smaller number of bins or "
          "removing timestamps with low variation."
      )
      mcb = MultipleCoefficientBinning(n_bins=6, strategy="quantile")
      with pytest.raises(ValueError, match=msg_error):
          mcb.fit(np.r_[np.zeros((4, 2)), np.ones((4, 2))])
  
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 6 for calling a global function with example usage: test_identical_bin_edges() without return types