class_docstr: Abstract interface to create holidays following certain rules.
code: def rule_from_name(self, name):
      for rule in self.rules:
          if rule.name == name:
              return rule
  
      return None
  
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 2 for calling the AbstractHolidayCalendar obj's underlying member method code with example usage: obj.rule_from_name(name) and returns: None, rule