code: def test_cut_deprecated_as_series() -> None:
      a = pl.Series("a", [v / 10 for v in range(-30, 30, 5)])
      with pytest.deprecated_call():
          out = a.cut(breaks=[-1, 1], as_series=False)
  
      assert out.shape == (12, 3)
      assert out.filter(pl.col("break_point") < 1e9).to_dict(
          as_series=False
      ) == {
          "a": [-3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.0, 0.5, 1.0],
          "break_point": [
              -1.0,
              -1.0,
              -1.0,
              -1.0,
              -1.0,
              1.0,
              1.0,
              1.0,
              1.0,
          ],
          "category": [
              "(-inf, -1]",
              "(-inf, -1]",
              "(-inf, -1]",
              "(-inf, -1]",
              "(-inf, -1]",
              "(-1, 1]",
              "(-1, 1]",
              "(-1, 1]",
              "(-1, 1]",
          ],
      }
  
file_path: polars/py-polars/tests/unit/operations/test_cut.py
imports: from __future__ import annotations
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_cut_deprecated_as_series() without return types