code: def test_iter_pages(page: int, expect: list[int | None]) -> None:
      p = RangePagination(page=page)
      assert list(p.iter_pages()) == expect
  
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 7 for calling a global function with example usage: test_iter_pages(page, expect) without return types