def METHOD_NAME(self, message):
    parts = ["Message", message["Message"], "MessageId", message["MessageId"]]
    if "Subject" in message:
        parts.extend(["Subject", message["Subject"]])
    parts.extend(
        [
            "Timestamp",
            message["Timestamp"],
            "TopicArn",
            message["TopicArn"],
            "Type",
            message["Type"],
        ]
    )
    return parts