code: def test_list_of_struct_unique() -> None:
      df = pl.DataFrame(
          {
              "col_struct": [
                  [
                      {"a": 1, "b": 11},
                      {"a": 2, "b": 12},
                      {"a": 1, "b": 11},
                  ]
              ]
          }
      )
      # the order is unpredictable
      unique = df.with_columns(
          pl.col("col_struct").list.unique().alias("unique")
      )["unique"].to_list()
      assert len(unique) == 1
      unique_el = unique[0]
      assert len(unique_el) == 2
      assert {"a": 2, "b": 12} in unique_el
      assert {"a": 1, "b": 11} in unique_el
  
imports: from __future__ import annotations
  from dataclasses import dataclass
  from datetime import datetime, time
  from typing import TYPE_CHECKING
  import pandas
  import pyarrow
  import pytest
  import polars
  import polars.selectors
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 26 for calling a global function with example usage: test_list_of_struct_unique() without return types