code: def test_struct_is_in() -> None:
      # The dtype casts below test that struct is_in upcasts dtypes.
      s1 = (
          pl.DataFrame({"x": [4, 3, 4, 9], "y": [0, 4, 6, 2]})
          .select(pl.struct(schema={"x": pl.Int8, "y": pl.Float32}))
          .to_series()
      )
      s2 = (
          pl.DataFrame({"x": [4, 3, 5, 9], "y": [0, 7, 6, 2]})
          .select(pl.struct(["x", "y"]))
          .to_series()
      )
      assert s1.is_in(s2).to_list() == [True, False, False, True]
  
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 42 for calling a global function with example usage: test_struct_is_in() without return types