code: def test_offset_whole_year(self):
      dates = (
          datetime(2007, 12, 15),
          datetime(2008, 1, 1),
          datetime(2008, 1, 15),
          datetime(2008, 2, 1),
          datetime(2008, 2, 15),
          datetime(2008, 3, 1),
          datetime(2008, 3, 15),
          datetime(2008, 4, 1),
          datetime(2008, 4, 15),
          datetime(2008, 5, 1),
          datetime(2008, 5, 15),
          datetime(2008, 6, 1),
          datetime(2008, 6, 15),
          datetime(2008, 7, 1),
          datetime(2008, 7, 15),
          datetime(2008, 8, 1),
          datetime(2008, 8, 15),
          datetime(2008, 9, 1),
          datetime(2008, 9, 15),
          datetime(2008, 10, 1),
          datetime(2008, 10, 15),
          datetime(2008, 11, 1),
          datetime(2008, 11, 15),
          datetime(2008, 12, 1),
          datetime(2008, 12, 15),
      )
  
      for base, exp_date in zip(dates[:-1], dates[1:]):
          assert_offset_equal(SemiMonthBegin(), base, exp_date)
  
      # ensure .apply_index works as expected
      shift = DatetimeIndex(dates[:-1])
      with tm.assert_produces_warning(None):
          # GH#22535 check that we don't get a FutureWarning from adding
          # an integer array to PeriodIndex
          result = SemiMonthBegin() + shift
  
      exp = DatetimeIndex(dates[1:])
      tm.assert_index_equal(result, exp)
  
imports: from __future__ import annotations
  from datetime import datetime
  import pytest
  from pandas._libs.tslibs import Timestamp
  from pandas._libs.tslibs.offsets import MonthBegin, MonthEnd, SemiMonthBegin, SemiMonthEnd
  from pandas import DatetimeIndex, Series, _testing
  from pandas.tests.tseries.offsets.common import assert_is_on_offset, assert_offset_equal
label_desc: Use image node_id 1 for calling the TestSemiMonthBegin obj's underlying member method code with example usage: obj.test_offset_whole_year() without return types