code: def test_is_unique_series() -> None:
      s = pl.Series("a", [1, 2, 2, 3])
      assert_series_equal(
          s.is_unique(), pl.Series("a", [True, False, False, True])
      )
  
      # str
      assert pl.Series(
          ["a", "b", "c", "a"]
      ).is_duplicated().to_list() == [
          True,
          False,
          False,
          True,
      ]
      assert pl.Series(["a", "b", "c", "a"]).is_unique().to_list() == [
          False,
          True,
          True,
          False,
      ]
  
file_path: polars/py-polars/tests/unit/operations/unique/test_is_unique.py
imports: import polars
  from polars.testing import assert_series_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_is_unique_series() without return types