code: def _roundtrip_table(
      table, read_table_kwargs=None, write_table_kwargs=None
  ):
      read_table_kwargs = read_table_kwargs or {}
      write_table_kwargs = write_table_kwargs or {}
  
      writer = pa.BufferOutputStream()
      _write_table(table, writer, **write_table_kwargs)
      reader = pa.BufferReader(writer.getvalue())
      return _read_table(reader, **read_table_kwargs)
  
file_path: arrow/python/pyarrow/tests/parquet/common.py
imports: import io
  import numpy
  import pyarrow
  from pyarrow.tests import util
label_desc: Use image node_id 3 for calling a global function with example usage: _roundtrip_table(table, read_table_kwargs, write_table_kwargs) and returns: _read_table