code: def test_compare_different_len() -> None:
      df = pl.DataFrame(
          {
              "idx": list(range(5)),
          }
      )
  
      s = pl.Series([2, 5, 8])
      with pytest.raises(
          pl.ComputeError,
          match=r"cannot evaluate two Series of different lengths",
      ):
          df.filter(pl.col("idx") == s)
  
imports: from __future__ import annotations
  import io
  from datetime import date, datetime, time
  from decimal import Decimal
  from typing import TYPE_CHECKING, Any
  import numpy
  import pytest
  import polars
  from polars.datatypes.convert import dtype_to_py_type
  from polars.exceptions import InvalidOperationError
label_desc: Use image node_id 31 for calling a global function with example usage: test_compare_different_len() without return types