code: def test_datetime_range_precision(
      time_unit: TimeUnit | None, expected_micros: int
  ) -> None:
      micros = 986759
      start = datetime(2000, 5, 30, 1, 53, 4, micros)
      stop = datetime(2000, 5, 31, 1, 53, 4, micros)
      result = pl.datetime_range(
          start, stop, time_unit=time_unit, eager=True
      )
      expected_start = start.replace(microsecond=expected_micros)
      expected_stop = stop.replace(microsecond=expected_micros)
      assert result[0] == expected_start
      assert result[1] == expected_stop
  
imports: from __future__ import annotations
  from datetime import date, datetime, timedelta
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.datatypes import DTYPE_TEMPORAL_UNITS
  from polars.exceptions import ComputeError, TimeZoneAwareConstructorWarning
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_datetime_range_precision(time_unit, expected_micros) without return types