code: def test_year_has_extra_week(self):
      # End of long Q1
      assert makeFY5253LastOfMonthQuarter(
          1,
          startingMonth=12,
          weekday=WeekDay.SAT,
          qtr_with_extra_week=1,
      ).year_has_extra_week(datetime(2011, 4, 2))
  
      # Start of long Q1
      assert makeFY5253LastOfMonthQuarter(
          1,
          startingMonth=12,
          weekday=WeekDay.SAT,
          qtr_with_extra_week=1,
      ).year_has_extra_week(datetime(2010, 12, 26))
  
      # End of year before year with long Q1
      assert not makeFY5253LastOfMonthQuarter(
          1,
          startingMonth=12,
          weekday=WeekDay.SAT,
          qtr_with_extra_week=1,
      ).year_has_extra_week(datetime(2010, 12, 25))
  
      for year in [
          x
          for x in range(1994, 2011 + 1)
          if x not in [2011, 2005, 2000, 1994]
      ]:
          assert not makeFY5253LastOfMonthQuarter(
              1,
              startingMonth=12,
              weekday=WeekDay.SAT,
              qtr_with_extra_week=1,
          ).year_has_extra_week(datetime(year, 4, 2))
  
      # Other long years
      assert makeFY5253LastOfMonthQuarter(
          1,
          startingMonth=12,
          weekday=WeekDay.SAT,
          qtr_with_extra_week=1,
      ).year_has_extra_week(datetime(2005, 4, 2))
  
      assert makeFY5253LastOfMonthQuarter(
          1,
          startingMonth=12,
          weekday=WeekDay.SAT,
          qtr_with_extra_week=1,
      ).year_has_extra_week(datetime(2000, 4, 2))
  
      assert makeFY5253LastOfMonthQuarter(
          1,
          startingMonth=12,
          weekday=WeekDay.SAT,
          qtr_with_extra_week=1,
      ).year_has_extra_week(datetime(1994, 4, 2))
  
imports: from datetime import datetime
  from dateutil.relativedelta import relativedelta
  import pytest
  from pandas import Timestamp
  import pandas._testing
  from pandas.tests.tseries.offsets.common import WeekDay, assert_is_on_offset, assert_offset_equal
  from pandas.tseries.offsets import FY5253, FY5253Quarter
label_desc: Use image node_id 5 for calling the TestFY5253LastOfMonthQuarter obj's underlying member method code with example usage: obj.test_year_has_extra_week() without return types