code: def notify_user(self, msg, level="info", rate_limit=5, title=None, icon=None):
          
          module_name = self._module.module_full_name
          if isinstance(msg, Composite):
              msg = msg.text()
          if title is None:
              title = "py3status: {}".format(module_name)
          elif isinstance(title, Composite):
              title = title.text()
          # force unicode for python2 str
          if self._is_python_2:
              if isinstance(msg, str):
                  msg = msg.decode("utf-8")
              if isinstance(title, str):
                  title = title.decode("utf-8")
          if msg:
              self._py3_wrapper.notify_user(
                  msg=msg,
                  level=level,
                  rate_limit=rate_limit,
                  module_name=module_name,
                  title=title,
                  icon=icon,
              )
docs: Send a notification to the user.
          level must be 'info', 'error' or 'warning'.
          rate_limit is the time period in seconds during which this message
          should not be repeated.
          icon must be an icon path or icon name.