code: def _check_roundtrip(
      table, expected=None, read_table_kwargs=None, **write_table_kwargs
  ):
      if expected is None:
          expected = table
  
      read_table_kwargs = read_table_kwargs or {}
  
      # intentionally check twice
      result = _roundtrip_table(
          table,
          read_table_kwargs=read_table_kwargs,
          write_table_kwargs=write_table_kwargs,
      )
      assert result.equals(expected)
      result = _roundtrip_table(
          result,
          read_table_kwargs=read_table_kwargs,
          write_table_kwargs=write_table_kwargs,
      )
      assert result.equals(expected)
  
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 4 for calling a global function with example usage: _check_roundtrip(table, expected, read_table_kwargs) without return types