<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dead(cls, reason=None, **kwargs):
 """ Syntax helper to construct a dead message. """

        kwargs['data'], _ = UTF8_CODEC.encode(reason or u'')
        return cls(reply_to=IS_DEAD, **kwargs)