code: def test_dddo004_dynamic_value_search(dash_dcc):
      # Bug clear the search input while typing
      # https://github.com/plotly/dash/issues/2099
  
      options = [
          {"label": "aa1", "value": "aa1"},
          {"label": "aa2", "value": "aa2"},
          {"label": "aa3", "value": "aa3"},
          {"label": "best value", "value": "bb1"},
          {"label": "better value", "value": "bb2"},
          {"label": "bye", "value": "bb3"},
      ]
  
      app = Dash(__name__)
      app.layout = html.Div(
          [
              html.Div(
                  [
                      "Single dynamic Dropdown",
                      dcc.Dropdown(id="dropdown"),
                  ],
                  style={
                      "width": 200,
                      "marginLeft": 20,
                      "marginTop": 20,
                  },
              ),
          ]
      )
  
      @app.callback(
          Output("dropdown", "options"),
          Input("dropdown", "search_value"),
      )
      def update_options(search_value):
          if not search_value:
              raise PreventUpdate
          return [o for o in options if search_value in o["label"]]
  
      dash_dcc.start_server(app)
  
      input_ = dash_dcc.find_element("#dropdown input")
  
      input_.send_keys("aa1")
      input_.send_keys(Keys.ENTER)
  
      input_.send_keys("b")
  
      time.sleep(1)
      assert input_.get_attribute("value") == "b"
  
imports: import time
  from selenium.webdriver.common.keys import Keys
  from dash import Dash, Input, Output, dcc, html
  from dash.exceptions import PreventUpdate
label_desc: Use image node_id 4 for calling a global function with example usage: test_dddo004_dynamic_value_search(dash_dcc) and returns: unknown