code: def HolidayCalendarFactory(
      name, base, other, base_class=AbstractHolidayCalendar
  ):
      rules = AbstractHolidayCalendar.merge_class(base, other)
      calendar_class = type(
          name, (base_class,), {"rules": rules, "name": name}
      )
      return calendar_class
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta
  import warnings
  from dateutil.relativedelta import FR, MO, SA, SU, TH, TU, WE
  import numpy
  from pandas.errors import PerformanceWarning
  from pandas import DateOffset, DatetimeIndex, Series, Timestamp, concat, date_range
  from pandas.tseries.offsets import Day, Easter
label_desc: Use image node_id 13 for calling a global function with example usage: HolidayCalendarFactory(name, base, other, base_class) and returns: calendar_class