code: def test_qcut_n() -> None:
      s = pl.Series("a", [-2, -1, 0, 1, 2])
  
      out = s.qcut(2, labels=["x", "y"], left_closed=True)
  
      expected = pl.Series(
          "a", ["x", "x", "y", "y", "y"], dtype=pl.Categorical
      )
      assert_series_equal(out, expected, categorical_as_str=True)
  
file_path: polars/py-polars/tests/unit/operations/test_qcut.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_qcut_n() without return types