code: def test_is_in_struct() -> None:
      df = pl.DataFrame(
          {
              "struct_elem": [{"a": 1, "b": 11}, {"a": 1, "b": 90}],
              "struct_list": [
                  [
                      {"a": 1, "b": 11},
                      {"a": 2, "b": 12},
                      {"a": 3, "b": 13},
                  ],
                  [{"a": 3, "b": 3}],
              ],
          }
      )
  
      assert df.filter(
          pl.col("struct_elem").is_in("struct_list")
      ).to_dict(as_series=False) == {
          "struct_elem": [{"a": 1, "b": 11}],
          "struct_list": [
              [{"a": 1, "b": 11}, {"a": 2, "b": 12}, {"a": 3, "b": 13}]
          ],
      }
  
imports: from __future__ import annotations
  from datetime import date
  import pytest
  import polars
  from polars import StringCache
  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_is_in_struct() without return types