def METHOD_NAME(
    app: Page, assert_snapshot: ImageCompareFunction
):
    """Test that st.selectbox behaves correctly when empty (no initial selection)."""
    # Enter 10 in the first empty input:
    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
    )