code: def test_parquet_writer_store_schema(tempdir):
      table = pa.table({"a": [1, 2, 3]})
  
      # default -> write schema information
      path1 = tempdir / "test_with_schema.parquet"
      with pq.ParquetWriter(path1, table.schema) as writer:
          writer.write_table(table)
  
      meta = pq.read_metadata(path1)
      assert b"ARROW:schema" in meta.metadata
      assert meta.metadata[b"ARROW:schema"]
  
      # disable adding schema information
      path2 = tempdir / "test_without_schema.parquet"
      with pq.ParquetWriter(
          path2, table.schema, store_schema=False
      ) as writer:
          writer.write_table(table)
  
      meta = pq.read_metadata(path2)
      assert meta.metadata is None
  
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 14 for calling a global function with example usage: test_parquet_writer_store_schema(tempdir) without return types