code: def test_page_size_matching_max_returned_rows(
      app_client_returned_rows_matches_page_size,
  ):
      fetched = []
      path = "/fixtures/no_primary_key.json?_extra=next_url"
      while path:
          response = app_client_returned_rows_matches_page_size.get(
              path
          )
          fetched.extend(response.json["rows"])
          assert len(response.json["rows"]) in (1, 50)
          path = response.json["next_url"]
          if path:
              path = path.replace("http://localhost", "")
      assert len(fetched) == 201
  
file_path: datasette/tests/test_table_api.py
imports: from datasette.utils import detect_json1
  from datasette.utils.sqlite import sqlite_version
  from .fixtures import app_client, app_client_with_trace, app_client_returned_rows_matches_page_size, generate_compound_rows, generate_sortable_rows, make_app_client
  import json
  import pytest
  import urllib
label_desc: Use image node_id 3 for calling a global function with example usage: test_page_size_matching_max_returned_rows(app_client_returned_rows_matches_page_size) without return types