code: def test_paginate_max(paginate: _PaginateCallable) -> None:
      p = paginate(per_page=100, max_per_page=50)
      assert p.per_page == 50
  
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 13 for calling a global function with example usage: test_paginate_max(paginate) without return types