code: def test_strptime_extract_times(
      unit_attr: str,
      expected: pl.Series,
      series_of_int_dates: pl.Series,
      series_of_str_dates: pl.Series,
  ) -> None:
      s = series_of_str_dates.str.strptime(
          pl.Datetime, format="%Y-%m-%d %H:%M:%S.%9f"
      )
  
      assert_series_equal(getattr(s.dt, unit_attr)(), expected)
  
imports: from __future__ import annotations
  import sys
  from datetime import date, datetime, time, timedelta
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.datatypes import DTYPE_TEMPORAL_UNITS
  from polars.dependencies import _ZONEINFO_AVAILABLE
  from polars.exceptions import ComputeError, InvalidOperationError
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_strptime_extract_times(unit_attr, expected, series_of_int_dates, series_of_str_dates) without return types