code: def test_quantile_as_window() -> None:
      result = (
          pl.DataFrame(
              {
                  "group": [0, 0, 1, 1],
                  "value": [0, 1, 0, 2],
              }
          )
          .select(pl.quantile("value", 0.9).over("group"))
          .to_series()
      )
      expected = pl.Series("value", [1.0, 1.0, 2.0, 2.0])
      assert_series_equal(result, expected)
  
imports: from __future__ import annotations
  import numpy
  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_quantile_as_window() without return types