code: def test_gene002_arbitrary_resources(dash_duo):
      app = Dash(__name__)
  
      app.layout = Div([Button("Click", id="btn"), Div(id="container")])
  
      @app.callback(
          Output("container", "children"), [Input("btn", "n_clicks")]
      )
      def update_container(n_clicks):
          if n_clicks is None:
              raise PreventUpdate
  
          return StyledComponent(
              id="styled",
              value="Styled",
              style={"font-family": "godfather"},
          )
  
      dash_duo.start_server(app)
  
      assert (
          dash_duo.driver.execute_script(
              "return document.fonts.check('1em godfather')"
          )
          is False
      )
  
      dash_duo.wait_for_element("#btn").click()
      dash_duo.wait_for_text_to_equal("#styled", "Styled")
  
      WebDriverWait(dash_duo.driver, 10).until(
          lambda _: dash_duo.driver.execute_script(
              "return document.fonts.check('1em godfather')"
          )
          is True,
      )
  
file_path: dash/tests/integration/test_generation.py
imports: import pytest
  from dash import Dash, Input, Output
  from dash.exceptions import PreventUpdate
  from dash_generator_test_component_nested import MyNestedComponent
  from dash_generator_test_component_standard import MyStandardComponent
  from dash_generator_test_component_typescript import TypeScriptComponent, TypeScriptClassComponent, StandardComponent, RequiredChildrenComponent
  from dash_test_components import StyledComponent
  from dash.html import Button, Div
  from selenium.webdriver.support.ui import WebDriverWait
label_desc: Use image node_id 2 for calling a global function with example usage: test_gene002_arbitrary_resources(dash_duo) and returns: StyledComponent