def get_email_headers(email) -> dict:
    """
    Extracts the headers from the email and returns them as a dict.

    :param email: The email to extract the sender from.
    :return: The headers of the email.
    """
    headers = {"sender": "N/A", "subject": "N/A"}
    for header in email["payload"]["headers"]:
        if header["name"] == "From":
            headers["sender"] = header["value"]
        elif header["name"] == "Subject":
            headers["subject"] = header["value"]
    return headers