code: def parseHolidays(holidaysStr, holidayMap=None):
      
      if holidayMap is None:
          holidayMap = _HOLIDAY_MAP
      retval = holidays.HolidayBase()
      retval.country = None
      holidaysStr = holidaysStr.strip()
      for (country, subdivisions) in HolsRe.findall(holidaysStr):
          cls = holidayMap.get(country)
          if cls is not None:
              if subdivisions:
                  retval += _parseSubdivisions(subdivisions, cls)
              else:
                  retval += cls()
      return retval
docs: Takes a string like NZ[WTL,Nelson],AU[*],Northern Ireland and builds a HolidaySum from it