code: def test_struct_pyarrow_dataset_5796(tmp_path: Path) -> None:
      tmp_path.mkdir(exist_ok=True)
  
      num_rows = 2**17 + 1
  
      df = pl.from_records(
          [{"id": i, "nested": {"a": i}} for i in range(num_rows)]
      )
      file_path = tmp_path / "out.parquet"
      df.write_parquet(file_path, use_pyarrow=True)
      tbl = ds.dataset(file_path).to_table()
      result = pl.from_arrow(tbl)
  
      assert_frame_equal(result, df)
  
imports: from __future__ import annotations
  import io
  from datetime import datetime, time, timezone
  from decimal import Decimal
  from typing import TYPE_CHECKING
  import numpy
  import pandas
  import pyarrow
  import pyarrow.dataset
  import pyarrow.parquet
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 23 for calling a global function with example usage: test_struct_pyarrow_dataset_5796(tmp_path) without return types