code: def test_parquet_writer_filesystem_buffer_raises():
      df = _test_dataframe(100)
      table = pa.Table.from_pandas(df, preserve_index=False)
      filesystem = fs.LocalFileSystem()
  
      # Should raise ValueError when filesystem is passed with file-like object
      with pytest.raises(
          ValueError, match="specified path is file-like"
      ):
          pq.ParquetWriter(
              pa.BufferOutputStream(),
              table.schema,
              filesystem=filesystem,
          )
  
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 12 for calling a global function with example usage: test_parquet_writer_filesystem_buffer_raises() without return types