code: def test_high_n_bins_entropy():
      """Test that an error is raised when 'n_bins' is too large."""
      msg_error = (
          "The number of bins is too high for timestamp {0}. "
          "Consider trying with a smaller number of bins or "
          "removing this timestamp.".format(0)
      )
      mcb = MultipleCoefficientBinning(n_bins=9, strategy="entropy")
      with pytest.raises(ValueError, match=msg_error):
          mcb.fit(X, y)
  
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 8 for calling a global function with example usage: test_high_n_bins_entropy() without return types