code: def test_last_page() -> None:
      p = RangePagination(page=15)
      assert p.page == 15
      assert p.has_prev
      assert p.prev_num == 14
      assert not p.has_next
      assert p.next_num is None
  
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 2 for calling a global function with example usage: test_last_page() without return types