code: def test_cse_is_in_11489() -> None:
      df = pl.DataFrame(
          {"cond": [1, 2, 3, 2, 1], "x": [1.0, 0.20, 3.0, 4.0, 0.50]}
      ).lazy()
      any_cond = (
          pl.when(pl.col("cond").is_in([2, 3]))
          .then(True)
          .when(pl.col("cond").is_in([1]))
          .then(False)
          .otherwise(None)
          .alias("any_cond")
      )
      val = (
          pl.when(any_cond)
          .then(1.0)
          .when(~any_cond)
          .then(0.0)
          .otherwise(None)
          .alias("val")
      )
      assert df.select("cond", any_cond, val).collect().to_dict(
          as_series=False
      ) == {
          "cond": [1, 2, 3, 2, 1],
          "any_cond": [False, True, True, True, False],
          "val": [0.0, 1.0, 1.0, 1.0, 0.0],
      }
  
imports: import re
  from datetime import date, datetime
  from tempfile import NamedTemporaryFile
  from typing import Any
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 21 for calling a global function with example usage: test_cse_is_in_11489() without return types