code: def test_leg001_legacy_pre_component_as_props(dash_duo):
      app = Dash(__name__)
  
      app.layout = PreCAPLegacyComponent(id="pre-cap", value="legacy")
  
      dash_duo.start_server(app)
  
      dash_duo.wait_for_text_to_equal("#pre-cap", "legacy")
      assert dash_duo.get_logs() == []
  
imports: from dash import Dash
  from dash.development.base_component import Component, _explicitize_args
label_desc: Use image node_id 1 for calling a global function with example usage: test_leg001_legacy_pre_component_as_props(dash_duo) without return types