code: def test_contains() -> None:
      a = pl.Series("a", [[1, 2, 3], [2, 5], [6, 7, 8, 9]])
      out = a.list.contains(2)
      expected = pl.Series("a", [True, True, False])
      assert_series_equal(out, expected)
  
      out = pl.select(pl.lit(a).list.contains(2)).to_series()
      assert_series_equal(out, expected)
  
imports: from __future__ import annotations
  from datetime import date, datetime
  import numpy
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_contains() without return types