human
I wrote the below code

    def _emoji(matched):
        hex = matched.group(1)
        return ('\\U%08x' % int(hex, 16)).decode('unicode-escape').encode('utf-8')
    replace_t = re.sub(Constant.REGEX_EMOJI, _emoji, text)
    return replace_t

What's a good function header?

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

def trans_emoji(text):