code: def new():
      if request.method == "POST":
          if not request.form["title"]:
              flash("Title is required", "error")
          elif not request.form["text"]:
              flash("Text is required", "error")
          else:
              todo = Todo(
                  title=request.form["title"], text=request.form["text"]
              )
              db.session.add(todo)
              db.session.commit()
              flash("Todo item was successfully created")
              return redirect(url_for("show_all"))
  
      return render_template("new.html")
  
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 3 for calling a global function with example usage: new() and returns: render_template, redirect