code: def test_compare_series_type_mismatch() -> None:
      srs1 = pl.Series([1, 2, 3])
      srs2 = pl.DataFrame({"col1": [2, 3, 4]})
  
      with pytest.raises(
          AssertionError,
          match=r"inputs are different \(unexpected input types\)",
      ):
          assert_series_equal(srs1, srs2)  # type: ignore[arg-type]
  
      srs3 = pl.Series([1.0, 2.0, 3.0])
      assert_series_not_equal(srs1, srs3)
      with pytest.raises(
          AssertionError,
          match=r"Series are different \(dtype mismatch\)",
      ):
          assert_series_equal(srs1, srs3)
  
imports: from __future__ import annotations
  import math
  from datetime import datetime, time, timedelta
  from decimal import Decimal
  from typing import Any
  import pytest
  import polars
  from polars.testing import assert_series_equal, assert_series_not_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_compare_series_type_mismatch() without return types