human
I wrote the below code

    @functools.wraps(method)
    def wrapped(self, *args, **kwargs):
        queued = kwargs.pop('queued', self._is_messages_queued_default)
        isgroup = kwargs.pop('isgroup', False)
        if queued:
            prom = promise.Promise(method, ((self,) + args), kwargs)
            return self._msg_queue(prom, isgroup)
        return method(self, *args, **kwargs)
    return wrapped

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def queuedmessage(method):