code: def test_duration_subseconds_us(
      time_unit: TimeUnit, ms: int, us: int, ns: int
  ) -> None:
      result = pl.duration(
          milliseconds=6,
          microseconds=4_005,
          nanoseconds=1_002_003,
          time_unit=time_unit,
      )
      expected = pl.duration(
          milliseconds=ms,
          microseconds=us,
          nanoseconds=ns,
          time_unit=time_unit,
      )
      assert_frame_equal(pl.select(result), pl.select(expected))
  
file_path: polars/py-polars/tests/unit/functions/as_datatype/test_duration.py
imports: from __future__ import annotations
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_duration_subseconds_us(time_unit, ms, us, ns) without return types