code: def test_empty_time_input_behaves_correctly(
      app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that st.time_input behaves correctly when empty (no initial value)."""
      empty_time_input = app.get_by_test_id("stTimeInput").nth(7)
      empty_time_input_field = empty_time_input.locator("input")
  
      # Type an option:
      empty_time_input_field.type("00:15")
      empty_time_input_field.press("Enter")
  
      expect(app.get_by_test_id("stMarkdown").nth(8)).to_have_text(
          "Value 8: 00:15:00", use_inner_text=True
      )
  
      assert_snapshot(
          empty_time_input, name="st_time_input-clearable_input"
      )
  
      # Clear the input:
      empty_time_input.get_by_test_id("stTimeInputClearButton").click()
  
      # Should be empty again:
      expect(app.get_by_test_id("stMarkdown").nth(8)).to_have_text(
          "Value 8: None", use_inner_text=True
      )
  
file_path: streamlit/e2e_playwright/st_time_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_empty_time_input_behaves_correctly(app, assert_snapshot) without return types