code: def test_get_slice_bounds_datetime_outside(
      self, box, side, year, expected, tz_aware_fixture
  ):
      # GH 35690
      tz = tz_aware_fixture
      index = bdate_range("2000-01-03", "2000-02-11").tz_localize(tz)
      key = box(year=year, month=1, day=7)
  
      if tz is not None:
          with pytest.raises(
              TypeError, match="Cannot compare tz-naive"
          ):
              # GH#36148 we require tzawareness-compat as of 2.0
              index.get_slice_bound(key, side=side)
      else:
          result = index.get_slice_bound(key, side=side)
          assert result == expected
  
imports: from datetime import date, datetime, time, timedelta
  import numpy
  import pytest
  from pandas._libs import index
  from pandas.compat.numpy import np_long
  import pandas
  from pandas import DatetimeIndex, Index, Timestamp, bdate_range, date_range, notna
  import pandas._testing
  from pandas.tseries.frequencies import to_offset
label_desc: Use image node_id 2 for calling the TestGetSliceBounds obj's underlying member method code with example usage: obj.test_get_slice_bounds_datetime_outside(box, side, year, expected, tz_aware_fixture) without return types