code: def test_parquet_incremental_file_build(tempdir):
      df = _test_dataframe(100)
      df["unique_id"] = 0
  
      arrow_table = pa.Table.from_pandas(df, preserve_index=False)
      out = pa.BufferOutputStream()
  
      writer = pq.ParquetWriter(out, arrow_table.schema, version="2.6")
  
      frames = []
      for i in range(10):
          df["unique_id"] = i
          arrow_table = pa.Table.from_pandas(df, preserve_index=False)
          writer.write_table(arrow_table)
  
          frames.append(df.copy())
  
      writer.close()
  
      buf = out.getvalue()
      result = _read_table(pa.BufferReader(buf))
  
      expected = pd.concat(frames, ignore_index=True)
      tm.assert_frame_equal(result.to_pandas(), expected)
  
file_path: arrow/python/pyarrow/tests/parquet/test_parquet_writer.py
imports: import pytest
  import pyarrow
  from pyarrow import fs
  from pyarrow.filesystem import FileSystem, LocalFileSystem
label_desc: Use image node_id 1 for calling a global function with example usage: test_parquet_incremental_file_build(tempdir) without return types