code: def test_parquet_invalid_writer(tempdir):
      # avoid segfaults with invalid construction
      with pytest.raises(TypeError):
          some_schema = pa.schema([pa.field("x", pa.int32())])
          pq.ParquetWriter(None, some_schema)
  
      with pytest.raises(TypeError):
          pq.ParquetWriter(tempdir / "some_path", 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 3 for calling a global function with example usage: test_parquet_invalid_writer(tempdir) without return types