docs: def notify(notification, value=None, unset_environment=False):
      """ Send notification to systemd daemon
  
      :type notification: Notification
      :type value: int
      :type unset_environment: bool 
      :param value: str or int value for non constant notifications
      :returns None
      """
  
      if not isinstance(notification, Notification):
          raise TypeError("state must be an instance of Notification")
  
      state = notification.value
  
      if state.constant is not None and value:
          raise ValueError(
              "State %s should contain only constant value %r" % (state.name, state.constant),
              state.name, state.constant
          )
  
      line = "%s=%s" % (
          state.name,
          state.constant if state.constant is not None else state.type(value)
      )
  
      log.debug("Send %r into systemd", line)
  
      try:
          return sd_notify(line, unset_environment)
      except Exception as e:
          log.error("%s", e)