code: def test_slice_end_of_period_resolution(self, partial_dtime):
      # GH#31064
      dti = date_range(
          "2019-12-31 23:59:55.999999999", periods=10, freq="s"
      )
  
      ser = Series(range(10), index=dti)
      result = ser[partial_dtime]
      expected = ser.iloc[:5]
      tm.assert_series_equal(result, expected)
  
imports: from datetime import datetime
  import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timedelta, Timestamp, date_range
  import pandas._testing
label_desc: Use image node_id 7 for calling the TestSlicing obj's underlying member method code with example usage: obj.test_slice_end_of_period_resolution(partial_dtime) without return types