code: def update_done():
      for todo in db.session.execute(db.select(Todo)).scalars():
          todo.done = f"done.{todo.id}" in request.form
  
      flash("Updated status")
      db.session.commit()
      return redirect(url_for("show_all"))
  
file_path: flask-sqlalchemy/examples/todo/app.py
imports: from datetime import datetime
  from datetime import timezone
  from flask import flash
  from flask import Flask
  from flask import redirect
  from flask import render_template
  from flask import request
  from flask import url_for
  from flask_sqlalchemy import SQLAlchemy
  from sqlalchemy.orm import DeclarativeBase
  from sqlalchemy.orm import Mapped, mapped_column
label_desc: Use image node_id 4 for calling a global function with example usage: update_done() and returns: redirect