code: def test_pass_separate_metadata():
      # ARROW-471
      df = alltypes_sample(size=10000)
  
      a_table = pa.Table.from_pandas(df)
  
      buf = io.BytesIO()
      _write_table(a_table, buf, compression="snappy", version="2.6")
  
      buf.seek(0)
      metadata = pq.read_metadata(buf)
  
      buf.seek(0)
  
      fileh = pq.ParquetFile(buf, metadata=metadata)
  
      tm.assert_frame_equal(df, fileh.read().to_pandas())
  
file_path: arrow/python/pyarrow/tests/parquet/test_parquet_file.py
imports: import io
  import os
  import sys
  import pytest
  import pyarrow
label_desc: Use image node_id 1 for calling a global function with example usage: test_pass_separate_metadata() without return types