human
I wrote the below code

    def __unicode__(self):
        return text_format.MessageToString(self, as_utf8=True).decode('utf-8')
    cls.__unicode__ = __unicode__

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

def _AddUnicodeMethod(unused_message_descriptor, cls):