code: def test_empty_selectbox_behaves_correctly(
      app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that st.selectbox behaves correctly when empty (no initial selection)."""
      empty_selectbox_input = (
          app.get_by_test_id("stSelectbox").locator("input").nth(8)
      )
  
      # Type an option:
      empty_selectbox_input.type("male")
      empty_selectbox_input.press("Enter")
  
      expect(app.get_by_test_id("stMarkdown").nth(9)).to_have_text(
          "value 9: male", use_inner_text=True
      )
  
      assert_snapshot(
          app.get_by_test_id("stSelectbox").nth(8),
          name="st_selectbox-clearable_input",
      )
  
      empty_selectbox_input.focus()
      empty_selectbox_input.press("Escape")
  
      # Should be empty again:
      expect(app.get_by_test_id("stMarkdown").nth(9)).to_have_text(
          "value 9: None", use_inner_text=True
      )
  
file_path: streamlit/e2e_playwright/st_selectbox_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_selectbox_behaves_correctly(app, assert_snapshot) without return types