code: def test_cut_include_breaks() -> None:
      s = pl.Series("a", [-2, -1, 0, 1, 2])
  
      out = s.cut(
          [-1.5, 0.25, 1.0],
          labels=["a", "b", "c", "d"],
          include_breaks=True,
      )
  
      expected = pl.DataFrame(
          {
              "break_point": [-1.5, 0.25, 0.25, 1.0, inf],
              "category": ["a", "b", "b", "c", "d"],
          },
          schema_overrides={"category": pl.Categorical},
      ).to_struct("a")
      assert_series_equal(out, expected, categorical_as_str=True)
  
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 3 for calling a global function with example usage: test_cut_include_breaks() without return types