code: def test_chunked_binary_error_message():
      # ARROW-3058: As Feather does not yet support chunked columns, we at least
      # make sure it's clear to the user what is going on
  
      # 2^31 + 1 bytes
      values = [b"x"] + [b"x" * (1 << 20)] * 2 * (1 << 10)
      df = pd.DataFrame({"byte_col": values})
  
      # Works fine with version 2
      buf = io.BytesIO()
      write_feather(df, buf, version=2)
      result = read_feather(pa.BufferReader(buf.getvalue()))
      assert_frame_equal(result, df)
  
      with pytest.raises(
          ValueError,
          match="'byte_col' exceeds 2GB maximum "
          "capacity of a Feather binary column. This restriction "
          "may be lifted in the future",
      ):
          write_feather(df, io.BytesIO(), version=1)
  
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 50 for calling a global function with example usage: test_chunked_binary_error_message() without return types