from datetime import datetime, timezone


def mark_asset_used_for_generation(asset) -> None:
    asset.metadata = {
        **asset.metadata,
        "generation_use_count": int(asset.metadata.get("generation_use_count") or 0) + 1,
        "last_used_at": datetime.now(timezone.utc).isoformat(),
        "review_status": asset.metadata.get("review_status") or "pending_review",
    }
