code: def test_parquet_compression_roundtrip(tempdir):
      # ARROW-10480: ensure even with nonstandard Parquet file naming
      # conventions, writing and then reading a file works. In
      # particular, ensure that we don't automatically double-compress
      # the stream due to auto-detecting the extension in the filename
      table = pa.table([pa.array(range(4))], names=["ints"])
      path = tempdir / "arrow-10480.pyarrow.gz"
      pq.write_table(table, path, compression="GZIP")
      result = pq.read_table(path)
      assert result.equals(table)
  
imports: from collections import OrderedDict
  import io
  import warnings
  from shutil import copytree
  import numpy
  import pytest
  import pyarrow
  from pyarrow import fs
  from pyarrow.filesystem import LocalFileSystem, FileSystem
  from pyarrow.tests import util
  from pyarrow.tests.parquet.common import _check_roundtrip, _roundtrip_table, _test_dataframe
label_desc: Use image node_id 33 for calling a global function with example usage: test_parquet_compression_roundtrip(tempdir) without return types