code: def test_create_holiday_regressors(self, holiday_patterns, expected):
      times = pd.date_range(
          "2011-01-01", "2012-01-01", freq=pd.DateOffset(years=1)
      )
      holidays_list = []
      for name, date_index in holiday_patterns:
          holidays_list.append(["US", name, times[date_index]])
      holidays = pd.DataFrame(
          holidays_list, columns=HOLIDAY_FILE_FIELDS
      )
      holiday_regressors = holiday_effects.create_holiday_regressors(
          times, holidays
      )
      self.assertEqual(holiday_regressors.values.tolist(), expected)
  
file_path: probability/tensorflow_probability/python/sts/holiday_effects_test.py
imports: from absl.testing import parameterized
  import pandas
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.sts import holiday_effects
label_desc: Use image node_id 8 for calling the HolidayEffectsTest obj's underlying member method code with example usage: obj.test_create_holiday_regressors(holiday_patterns, expected) without return types