class_docstr: Abstract interface to create holidays following certain rules.
class_docstr_tok: ["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 datetime import datetime, timedelta
  import warnings
  from dateutil.relativedelta import FR, MO, SA, SU, TH, TU, WE
  import numpy
  from pandas.compat import add_metaclass
  from pandas.errors import PerformanceWarning
  from pandas import DateOffset, Series, Timestamp, 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