code: def test_glob_n_rows(io_files_path: Path) -> None:
      file_path = io_files_path / "foods*.parquet"
      df = pl.scan_parquet(file_path, n_rows=40).collect()
  
      # 27 rows from foods1.parquet and 13 from foods2.parquet
      assert df.shape == (40, 4)
  
      # take first and last rows
      assert df[[0, 39]].to_dict(as_series=False) == {
          "category": ["vegetables", "seafood"],
          "calories": [45, 146],
          "fats_g": [0.5, 6.0],
          "sugars_g": [2, 2],
      }
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from pathlib import Path
  from typing import TYPE_CHECKING, Any
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 15 for calling a global function with example usage: test_glob_n_rows(io_files_path) without return types