def rule(event):
    if all(
        [
            event.deep_get("ResultType", default="") == 50057,
            event.deep_get("ResultDescription", default="") == "Failure",
        ]
    ):
        return True
    return False
