<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_header(message, name):
 """ Gets an email.message.Message and a header name and returns the mail header decoded with the correct charset. Args: message (email.message.Message):
 email message object name (string):
 header to get Returns: decoded header """

    header = message.get(name)
    log.debug("Getting header {!r}: {!r}".format(name, header))
    if header:
        return decode_header_part(header)
    return six.text_type()