code: def test_parquet_write(dataset, tmp_path):
      writer = ParquetDatasetWriter(dataset, tmp_path / "foo.parquet")
      assert writer.write() > 0
      pf = pq.ParquetFile(tmp_path / "foo.parquet")
      output_table = pf.read()
      assert dataset.data.table == output_table
  
file_path: datasets/tests/io/test_parquet.py
imports: import pyarrow.parquet
  import pytest
  from datasets import Audio, Dataset, DatasetDict, Features, IterableDatasetDict, NamedSplit, Sequence, Value, config
  from datasets.features.image import Image
  from datasets.info import DatasetInfo
  from datasets.io.parquet import ParquetDatasetReader, ParquetDatasetWriter, get_writer_batch_size
  from ..utils import assert_arrow_memory_doesnt_increase, assert_arrow_memory_increases
label_desc: Use image node_id 11 for calling a global function with example usage: test_parquet_write(dataset, tmp_path) without return types