code: def test_window_size_validation() -> None:
      df = pl.DataFrame({"x": [1.0]})
  
      with pytest.raises(
          ValueError, match=r"`window_size` must be positive"
      ):
          df.with_columns(
              trailing_min=pl.col("x").rolling_min(window_size=-3)
          )
  
imports: from __future__ import annotations
  import io
  from datetime import date, datetime, time
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any
  import numpy
  import pytest
  import polars
  from polars.datatypes.convert import dtype_to_py_type
  from polars.exceptions import InvalidOperationError
label_desc: Use image node_id 42 for calling a global function with example usage: test_window_size_validation() without return types