code: def test_handles_range_end_date_changes(app: Page):
      """Test that it correctly handles changes to the end date of a range."""
      app.get_by_test_id("stDateInput").nth(3).click()
  
      # Select '2019/07/10'
      app.locator(
          '[data-baseweb="calendar"] [aria-label^="Choose Wednesday, July 10th 2019."]'
      ).first.click()
  
      expect(app.get_by_test_id("stMarkdown").nth(3)).to_have_text(
          "Value 4: (datetime.date(2019, 7, 6), datetime.date(2019, 7, 10))",
          use_inner_text=True,
      )
  
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 6 for calling a global function with example usage: test_handles_range_end_date_changes(app) without return types