class_docstr: Class that defines a holiday with start/end dates and rules
  for observance.
class_docstr_tok: ["Class","that","defines","a","holiday","with","start\/end","dates","and","rules","for","observance","."]
code: def __repr__(self):
      info = ""
      if self.year is not None:
          info += "year={year}, ".format(year=self.year)
      info += "month={mon}, day={day}, ".format(
          mon=self.month, day=self.day
      )
  
      if self.offset is not None:
          info += "offset={offset}".format(offset=self.offset)
  
      if self.observance is not None:
          info += "observance={obs}".format(obs=self.observance)
  
      repr = "Holiday: {name} ({info})".format(
          name=self.name, info=info
      )
      return repr
  
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 Holiday obj's underlying member method code with example usage: obj.__repr__() and returns: repr