code: def test_non_exact_short_elements_10223(
      value: str, attr: str
  ) -> None:
      with pytest.raises(pl.ComputeError, match="conversion .* failed"):
          getattr(pl.Series(["2019-01-01", value]).str, attr)(
              exact=False
          )
  
imports: from __future__ import annotations
  import contextlib
  from datetime import date, datetime, time, timedelta, timezone
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.exceptions import ComputeError, TimeZoneAwareConstructorWarning
  from polars.testing import assert_series_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_non_exact_short_elements_10223(value, attr) without return types