code: def test_datetime_range_specifying_ambiguous_11713() -> None:
      result = pl.datetime_range(
          pl.datetime(2023, 10, 29, 2, 0).dt.replace_time_zone(
              "Europe/Madrid", ambiguous="earliest"
          ),
          pl.datetime(2023, 10, 29, 3, 0).dt.replace_time_zone(
              "Europe/Madrid"
          ),
          "1h",
          eager=True,
      )
      expected = pl.Series(
          "datetime",
          [
              datetime(2023, 10, 29, 2),
              datetime(2023, 10, 29, 2),
              datetime(2023, 10, 29, 3),
          ],
      ).dt.replace_time_zone(
          "Europe/Madrid",
          ambiguous=pl.Series(["earliest", "latest", "raise"]),
      )
      assert_series_equal(result, expected)
      result = pl.datetime_range(
          pl.datetime(2023, 10, 29, 2, 0).dt.replace_time_zone(
              "Europe/Madrid", ambiguous="latest"
          ),
          pl.datetime(2023, 10, 29, 3, 0).dt.replace_time_zone(
              "Europe/Madrid"
          ),
          "1h",
          eager=True,
      )
      expected = pl.Series(
          "datetime",
          [datetime(2023, 10, 29, 2), datetime(2023, 10, 29, 3)],
      ).dt.replace_time_zone(
          "Europe/Madrid", ambiguous=pl.Series(["latest", "raise"])
      )
      assert_series_equal(result, expected)
  
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 19 for calling a global function with example usage: test_datetime_range_specifying_ambiguous_11713() without return types