code: def __init__(
      self, total: int | None = 150, page: int = 1, per_page: int = 10
  ) -> None:
      if total is None:
          self._data = range(150)
      else:
          self._data = range(total)
  
      super().__init__(total=total, page=page, per_page=per_page)
  
      if total is None:
          self.total = 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 1 to create a new RangePagination object from inherited base classes: Pagination with example: obj = RangePagination(total, page, per_page)