code: def test_read_multiple_row_groups():
      N, K = 10000, 4
      df = alltypes_sample(size=N)
  
      a_table = pa.Table.from_pandas(df)
  
      buf = io.BytesIO()
      _write_table(
          a_table,
          buf,
          row_group_size=N / K,
          compression="snappy",
          version="2.6",
      )
  
      buf.seek(0)
  
      pf = pq.ParquetFile(buf)
  
      assert pf.num_row_groups == K
  
      result = pf.read_row_groups(range(K))
      tm.assert_frame_equal(df, result.to_pandas())
  
file_path: arrow/python/pyarrow/tests/parquet/test_parquet_file.py
imports: import io
  import os
  import sys
  import pytest
  import pyarrow
label_desc: Use image node_id 4 for calling a global function with example usage: test_read_multiple_row_groups() without return types