code: def test_holiday_dates(holiday, start_date, end_date, expected):
      assert list(holiday.dates(start_date, end_date)) == expected
  
      # Verify that timezone info is preserved.
      assert list(
          holiday.dates(
              utc.localize(Timestamp(start_date)),
              utc.localize(Timestamp(end_date)),
          )
      ) == [utc.localize(dt) for dt in expected]
  
file_path: pandas/pandas/tests/tseries/holiday/test_holiday.py
imports: from datetime import datetime
  import pytest
  from pytz import utc
  from pandas import DatetimeIndex, Series
  import pandas._testing
  from pandas.tseries.holiday import MO, SA, AbstractHolidayCalendar, DateOffset, EasterMonday, GoodFriday, Holiday, HolidayCalendarFactory, Timestamp, USColumbusDay, USFederalHolidayCalendar, USLaborDay, USMartinLutherKingJr, USMemorialDay, USPresidentsDay, USThanksgivingDay, get_calendar, next_monday
label_desc: Use image node_id 1 for calling a global function with example usage: test_holiday_dates(holiday, start_date, end_date, expected) without return types