def extract_header(message_dict):
    """Extracts the header from a message dictionary.

    Parameters
    ----------
    message_dict : dict

    Returns
    -------
    str

    """
    header = message_dict['structured_text']['header']
    return header
