code: def paginate(
      app: Flask, db: SQLAlchemy, Todo: t.Any
  ) -> _PaginateCallable:
      with app.app_context():
          for i in range(1, 251):
              db.session.add(Todo(title=f"task {i}"))
  
          db.session.commit()
  
      return _PaginateCallable(app, db, Todo)
  
imports: from __future__ import annotations
  import typing
  import pytest
  from flask import Flask
  from werkzeug.exceptions import NotFound
  from flask_sqlalchemy import SQLAlchemy
  from flask_sqlalchemy.pagination import Pagination
label_desc: Use image node_id 10 for calling a global function with example usage: paginate(app, db, Todo) and returns: _PaginateCallable