code: def test_parquet_writer_filesystem_s3fs(s3_example_s3fs):
      df = _test_dataframe(100)
      table = pa.Table.from_pandas(df, preserve_index=False)
  
      fs, directory = s3_example_s3fs
      path = directory + "/test.parquet"
  
      with pq.ParquetWriter(
          path, table.schema, filesystem=fs, version="2.6"
      ) as writer:
          writer.write_table(table)
  
      result = _read_table(path, filesystem=fs).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 11 for calling a global function with example usage: test_parquet_writer_filesystem_s3fs(s3_example_s3fs) without return types