code: def test_get_pets_pagination(client):
      rv = client.get("/pets")
      assert rv.status_code == 200
      assert rv.json
      assert "pets" in rv.json
      assert "pagination" in rv.json
      assert len(rv.json["pets"]) == 20
      assert rv.json["pagination"]["per_page"] == 20
      assert rv.json["pagination"]["pages"] == 5
      assert rv.json["pagination"]["total"] == 100
      assert rv.json["pagination"]["page"] == 1
      assert rv.json["pets"][0]["id"] == 1
      assert rv.json["pets"][-1]["id"] == 20
  
      per_page = 10
      page = 2
      rv = client.get(f"/pets?per_page={per_page}&page={page}")
      assert rv.status_code == 200
      assert rv.json
      assert "pets" in rv.json
      assert "pagination" in rv.json
      assert len(rv.json["pets"]) == per_page
      assert rv.json["pagination"]["per_page"] == per_page
      assert rv.json["pagination"]["pages"] == 10
      assert rv.json["pets"][0]["id"] == 11
      assert rv.json["pets"][-1]["id"] == 20
  
file_path: apiflask/examples/test_examples.py
imports: import os
  import sys
  from importlib import reload
  import flask_sqlalchemy
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_get_pets_pagination(client) without return types