code: def test_series_datetime_timeunits(
      s: pl.Series,
  ) -> None:
      # datetime
      assert s.to_list() == list(s)
      assert list(s.dt.millisecond()) == [
          v.microsecond // 1000 for v in s
      ]
      assert list(s.dt.nanosecond()) == [
          v.microsecond * 1000 for v in s
      ]
      assert list(s.dt.microsecond()) == [v.microsecond for v in s]
  
file_path: polars/py-polars/tests/parametric/test_series.py
imports: from __future__ import annotations
  from typing import Any
  from hypothesis import given, settings
  from hypothesis.strategies import booleans, floats, sampled_from
  import polars
  from polars.expr.expr import _prepare_alpha
  from polars.testing import assert_series_equal
  from polars.testing.parametric import series
label_desc: Use image node_id 3 for calling a global function with example usage: test_series_datetime_timeunits(s) without return types