def rule(event):
    if event.deep_get("EventID", default="") == 1007:
        return True
    return False
