code: def test_loc_getitem_large_series(self, monkeypatch):
      size_cutoff = 20
      with monkeypatch.context():
          monkeypatch.setattr(libindex, "_SIZE_CUTOFF", size_cutoff)
          ser = Series(
              np.arange(size_cutoff),
              index=IntervalIndex.from_breaks(
                  np.arange(size_cutoff + 1)
              ),
          )
  
          result1 = ser.loc[:8]
          result2 = ser.loc[0:8]
          result3 = ser.loc[0:8:1]
      tm.assert_series_equal(result1, result2)
      tm.assert_series_equal(result1, result3)
  
file_path: pandas/pandas/tests/indexing/interval/test_interval.py
imports: import numpy
  import pytest
  from pandas._libs import index
  from pandas.compat import IS64
  import pandas
  from pandas import DataFrame, IntervalIndex, Series
  import pandas._testing
label_desc: Use image node_id 5 for calling the TestIntervalIndex obj's underlying member method code with example usage: obj.test_loc_getitem_large_series(monkeypatch) without return types