code: def test_range_slice_outofbounds(self, make_range):
      # GH#5407
      idx = make_range(start="2013/10/01", freq="D", periods=10)
  
      df = DataFrame({"units": [100 + i for i in range(10)]}, index=idx)
      empty = DataFrame(index=idx[:0], columns=["units"])
      empty["units"] = empty["units"].astype("int64")
  
      tm.assert_frame_equal(df["2013/09/01":"2013/09/30"], empty)
      tm.assert_frame_equal(df["2013/09/30":"2013/10/02"], df.iloc[:2])
      tm.assert_frame_equal(df["2013/10/01":"2013/10/02"], df.iloc[:2])
      tm.assert_frame_equal(df["2013/10/02":"2013/09/30"], empty)
      tm.assert_frame_equal(df["2013/10/15":"2013/10/17"], empty)
      tm.assert_frame_equal(df["2013-06":"2013-09"], empty)
      tm.assert_frame_equal(df["2013-11":"2013-12"], empty)
  
file_path: pandas/pandas/tests/indexes/period/test_partial_slicing.py
imports: import numpy
  import pytest
  from pandas import DataFrame, PeriodIndex, Series, date_range, period_range
  import pandas._testing
label_desc: Use image node_id 6 for calling the TestPeriodIndex obj's underlying member method code with example usage: obj.test_range_slice_outofbounds(make_range) without return types