code: def test_str_strptime() -> None:
      s = pl.Series(["2020-01-01", "2020-02-02"])
      expected = pl.Series([date(2020, 1, 1), date(2020, 2, 2)])
      assert_series_equal(s.str.strptime(pl.Date, "%Y-%m-%d"), expected)
  
      s = pl.Series(["2020-01-01 00:00:00", "2020-02-02 03:20:10"])
      expected = pl.Series(
          [
              datetime(2020, 1, 1, 0, 0, 0),
              datetime(2020, 2, 2, 3, 20, 10),
          ]
      )
      assert_series_equal(
          s.str.strptime(pl.Datetime, "%Y-%m-%d %H:%M:%S"), expected
      )
  
      s = pl.Series(["00:00:00", "03:20:10"])
      expected = pl.Series([0, 12010000000000], dtype=pl.Time)
      assert_series_equal(s.str.strptime(pl.Time, "%H:%M:%S"), expected)
  
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 1 for calling a global function with example usage: test_str_strptime() without return types