def rule(event):
    if all(
        [
            event.deep_get("Image", default="").startswith("/tmp/"),
            not event.deep_get("Image", default="").endswith("/usr/bin/nextcloud"),
        ]
    ):
        return True
    return False
