code: def test_date_input_rendering(
      themed_app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that st.date_input renders correctly via screenshots matching."""
      date_time_widgets = themed_app.get_by_test_id("stDateInput")
      expect(date_time_widgets).to_have_count(14)
  
      assert_snapshot(
          date_time_widgets.nth(0), name="date_input-single_date"
      )
      assert_snapshot(
          date_time_widgets.nth(1), name="date_input-single_datetime"
      )
      assert_snapshot(
          date_time_widgets.nth(2), name="date_input-range_no_date"
      )
      assert_snapshot(
          date_time_widgets.nth(3), name="date_input-range_one_date"
      )
      assert_snapshot(
          date_time_widgets.nth(4), name="date_input-range_two_dates"
      )
      assert_snapshot(
          date_time_widgets.nth(5), name="date_input-disabled_no_date"
      )
      assert_snapshot(
          date_time_widgets.nth(6), name="date_input-label_hidden"
      )
      assert_snapshot(
          date_time_widgets.nth(7), name="date_input-label_collapsed"
      )
      assert_snapshot(
          date_time_widgets.nth(8), name="date_input-single_date_format"
      )
      assert_snapshot(
          date_time_widgets.nth(9),
          name="date_input-range_two_dates_format",
      )
      assert_snapshot(
          date_time_widgets.nth(10),
          name="date_input-range_no_date_format",
      )
      assert_snapshot(
          date_time_widgets.nth(11),
          name="date_input-single_date_callback",
      )
      assert_snapshot(
          date_time_widgets.nth(12), name="date_input-empty_value"
      )
      assert_snapshot(
          date_time_widgets.nth(13), name="date_input-value_from_state"
      )
  
file_path: streamlit/e2e_playwright/st_date_input_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 1 for calling a global function with example usage: test_date_input_rendering(themed_app, assert_snapshot) without return types