code: def is_urgent(self):
          
          if not self.current_event:
              return False
          now = datetime.now(tz=self.current_event.start.tzinfo)
          alert_time = now + timedelta(seconds=self.urgent_seconds)
          urgent = alert_time > self.current_event.start
          if urgent and self.urgent_blink:
              urgent = now.second % 2 == 0 and not self.urgent_acknowledged
          return urgent
docs: Determine whether or not to set the urgent flag. If urgent_blink is set, toggles urgent flag
          on and off every second.