code: def verify_file_encrypted(path):
      """Verify that the file is encrypted by looking at its first 4 bytes.
      If it's the magic string PARE
      then this is a parquet with encrypted footer."""
      with open(path, "rb") as file:
          magic_str = file.read(4)
          # Verify magic string for parquet with encrypted footer is PARE
          assert magic_str == b"PARE"
  
file_path: arrow/python/pyarrow/tests/parquet/encryption.py
imports: import base64
  import pyarrow.parquet.encryption
label_desc: Use image node_id 1 for calling a global function with example usage: verify_file_encrypted(path) without return types