code: def test_bins_not_overlapping_from_interval_index():
      # see gh-23980
      msg = "Overlapping IntervalIndex is not accepted"
      ii = IntervalIndex.from_tuples([(0, 10), (2, 12), (4, 14)])
  
      with pytest.raises(ValueError, match=msg):
          cut([5, 6], bins=ii)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, DatetimeIndex, Index, Interval, IntervalIndex, Series, TimedeltaIndex, Timestamp, cut, date_range, interval_range, isna, qcut, timedelta_range, to_datetime
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  import pandas.core.reshape.tile
label_desc: Use image node_id 7 for calling a global function with example usage: test_bins_not_overlapping_from_interval_index() without return types