code: def test_window_range_no_rows() -> None:
      df = pl.DataFrame({"x": [5, 5, 4, 4, 2, 2]})
      expr = pl.int_range(0, pl.count()).over("x")
      out = df.with_columns(int=expr)
      assert_frame_equal(
          out,
          pl.DataFrame(
              {"x": [5, 5, 4, 4, 2, 2], "int": [0, 1, 0, 1, 0, 1]}
          ),
      )
  
      df = pl.DataFrame({"x": []}, schema={"x": pl.Float32})
      out = df.with_columns(int=expr)
  
      expected = pl.DataFrame(schema={"x": pl.Float32, "int": pl.Int64})
      assert_frame_equal(out, 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 5 for calling a global function with example usage: test_window_range_no_rows() without return types