code: def test_date_ranges_broadcasting() -> None:
      df = pl.DataFrame(
          {
              "dates": [
                  date(2021, 1, 1),
                  date(2021, 1, 2),
                  date(2021, 1, 3),
              ]
          }
      )
      result = df.select(
          pl.date_ranges(start="dates", end=date(2021, 1, 3)).alias(
              "end"
          ),
          pl.date_ranges(start=date(2021, 1, 1), end="dates").alias(
              "start"
          ),
      )
      expected = pl.DataFrame(
          {
              "end": [
                  [
                      date(2021, 1, 1),
                      date(2021, 1, 2),
                      date(2021, 1, 3),
                  ],
                  [date(2021, 1, 2), date(2021, 1, 3)],
                  [date(2021, 1, 3)],
              ],
              "start": [
                  [date(2021, 1, 1)],
                  [date(2021, 1, 1), date(2021, 1, 2)],
                  [
                      date(2021, 1, 1),
                      date(2021, 1, 2),
                      date(2021, 1, 3),
                  ],
              ],
          }
      )
      assert_frame_equal(result, expected)
  
imports: from __future__ import annotations
  from datetime import date, datetime
  from typing import TYPE_CHECKING
  import pandas
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 18 for calling a global function with example usage: test_date_ranges_broadcasting() without return types