code: def test_large_binary_overflow():
      s = b"x" * (1 << 31)
      arr = pa.array([s], type=pa.large_binary())
      table = pa.Table.from_arrays([arr], names=["strs"])
      for use_dictionary in [False, True]:
          writer = pa.BufferOutputStream()
          with pytest.raises(
              pa.ArrowInvalid,
              match="Parquet cannot store strings with size 2GB or more",
          ):
              _write_table(table, writer, use_dictionary=use_dictionary)
  
imports: import decimal
  import io
  import numpy
  import pytest
  import pyarrow
  from pyarrow.tests import util
  from pyarrow.tests.parquet.common import _check_roundtrip
label_desc: Use image node_id 26 for calling a global function with example usage: test_large_binary_overflow() without return types