code: def test_byte_array_exactly_2gb():
      # Test edge case reported in ARROW-3762
      val = b"x" * (1 << 10)
  
      base = pa.array([val] * ((1 << 21) - 1))
      cases = [
          [b"x" * 1023],  # 2^31 - 1
          [b"x" * 1024],  # 2^31
          [b"x" * 1025],  # 2^31 + 1
      ]
      for case in cases:
          values = pa.chunked_array([base, pa.array(case)])
          t = pa.table([values], names=["f0"])
          result = _simple_table_roundtrip(t, use_dictionary=False)
          assert t.equals(result)
  
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 21 for calling a global function with example usage: test_byte_array_exactly_2gb() without return types