code: def test_v2_compression_options():
      df = pd.DataFrame({"A": np.arange(1000)})
  
      cases = [
          # compression, compression_level
          ("uncompressed", None),
          ("lz4", None),
          ("lz4", 1),
          ("lz4", 12),
          ("zstd", 1),
          ("zstd", 10),
      ]
  
      for compression, compression_level in cases:
          _check_pandas_roundtrip(
              df,
              compression=compression,
              compression_level=compression_level,
          )
  
      buf = io.BytesIO()
  
      # Trying to compress with V1
      with pytest.raises(
          ValueError,
          match="Feather V1 files do not support compression option",
      ):
          write_feather(df, buf, compression="lz4", version=1)
  
      # Trying to set chunksize with V1
      with pytest.raises(
          ValueError,
          match="Feather V1 files do not support chunksize option",
      ):
          write_feather(df, buf, chunksize=4096, version=1)
  
      # Unsupported compressor
      with pytest.raises(
          ValueError, match='compression="snappy" not supported'
      ):
          write_feather(df, buf, compression="snappy")
  
imports: import io
  import os
  import sys
  import tempfile
  import pytest
  import hypothesis
  import hypothesis.strategies
  import numpy
  import pyarrow
  import pyarrow.tests.strategies
  from pyarrow.feather import read_feather, write_feather, read_table, FeatherDataset
label_desc: Use image node_id 46 for calling a global function with example usage: test_v2_compression_options() without return types