code: def test_to_from_file_lzo(df: pl.DataFrame, tmp_path: Path) -> None:
      tmp_path.mkdir(exist_ok=True)
  
      file_path = tmp_path / "small.avro"
  
      # Writing lzo compressed parquet files is not supported for now.
      with pytest.raises(pl.ComputeError):
          df.write_parquet(
              file_path, compression="lzo", use_pyarrow=False
          )
      # Invalid parquet file as writing failed.
      with pytest.raises(pl.ComputeError):
          _ = pl.read_parquet(file_path)
  
      # Writing lzo compressed parquet files is not supported for now.
      with pytest.raises(OSError):
          df.write_parquet(
              file_path, compression="lzo", use_pyarrow=True
          )
      # Invalid parquet file as writing failed.
      with pytest.raises(FileNotFoundError):
          _ = pl.read_parquet(file_path)
  
imports: from __future__ import annotations
  import io
  from datetime import datetime, time, timezone
  from decimal import Decimal
  from typing import TYPE_CHECKING
  import numpy
  import pandas
  import pyarrow
  import pyarrow.dataset
  import pyarrow.parquet
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_to_from_file_lzo(df, tmp_path) without return types