code: def test_slice_float_start_stop(self, series_with_interval_index):
      # GH#31658 slicing with integers is positional, with floats is not
      #  supported
      ser = series_with_interval_index.copy()
  
      msg = "label-based slicing with step!=1 is not supported for IntervalIndex"
      with pytest.raises(ValueError, match=msg):
          ser[1.5:9.5:2]
  
file_path: pandas/pandas/tests/indexing/interval/test_interval_new.py
imports: import re
  import numpy
  import pytest
  from pandas.compat import IS64
  from pandas import Index, Interval, IntervalIndex, Series
  import pandas._testing
label_desc: Use image node_id 6 for calling the TestIntervalIndex obj's underlying member method code with example usage: obj.test_slice_float_start_stop(series_with_interval_index) without return types