code: def test_parquet_writer_write_wrappers(tempdir, filesystem):
      df = _test_dataframe(100)
      table = pa.Table.from_pandas(df, preserve_index=False)
      batch = pa.RecordBatch.from_pandas(df, preserve_index=False)
      path_table = str(tempdir / "data_table.parquet")
      path_batch = str(tempdir / "data_batch.parquet")
  
      with pq.ParquetWriter(
          path_table, table.schema, filesystem=filesystem, version="2.6"
      ) as writer:
          writer.write_table(table)
  
      result = _read_table(path_table).to_pandas()
      tm.assert_frame_equal(result, df)
  
      with pq.ParquetWriter(
          path_batch, table.schema, filesystem=filesystem, version="2.6"
      ) as writer:
          writer.write_batch(batch)
  
      result = _read_table(path_batch).to_pandas()
      tm.assert_frame_equal(result, df)
  
      with pq.ParquetWriter(
          path_table, table.schema, filesystem=filesystem, version="2.6"
      ) as writer:
          writer.write(table)
  
      result = _read_table(path_table).to_pandas()
      tm.assert_frame_equal(result, df)
  
      with pq.ParquetWriter(
          path_batch, table.schema, filesystem=filesystem, version="2.6"
      ) as writer:
          writer.write(batch)
  
      result = _read_table(path_batch).to_pandas()
      tm.assert_frame_equal(result, df)
  
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 6 for calling a global function with example usage: test_parquet_writer_write_wrappers(tempdir, filesystem) without return types