code: def recurrence(self, recurrence):
          
          if not is_valid_recurrence(recurrence):
              raise KeyError("'%s' is not a valid recurrence value" % recurrence)
  
          self._recurrence = recurrence
docs: See `recurrence`.