code: def test_holidays(self):
      # Define a TradingDay offset
      holidays = [
          "2012-05-01",
          datetime(2013, 5, 1),
          np.datetime64("2014-05-01"),
      ]
      tday = CDay(holidays=holidays)
      for year in range(2012, 2015):
          dt = datetime(year, 4, 30)
          xp = datetime(year, 5, 2)
          rs = dt + tday
          assert rs == xp
  
file_path: pandas/pandas/tests/tseries/offsets/test_custom_business_day.py
imports: from datetime import datetime, timedelta
  import numpy
  import pytest
  from pandas._libs.tslibs.offsets import CDay
  from pandas import _testing, read_pickle
  from pandas.tests.tseries.offsets.common import assert_offset_equal
  from pandas.tseries.holiday import USFederalHolidayCalendar
label_desc: Use image node_id 2 for calling the TestCustomBusinessDay obj's underlying member method code with example usage: obj.test_holidays() without return types