code: def test_intv001_interval(dash_dcc):
      app = Dash(__name__)
      app.layout = html.Div(
          [
              html.Div(id="output"),
              dcc.Interval(id="interval", interval=1, max_intervals=2),
          ]
      )
  
      @app.callback(
          Output("output", "children"),
          [Input("interval", "n_intervals")],
      )
      def update_text(n):
          return str(n)
  
      dash_dcc.start_server(app)
  
      time.sleep(5)
  
      dash_dcc.wait_for_text_to_equal("#output", "2")
      assert dash_dcc.get_logs() == []
  
imports: from dash.testing import wait
  from dash import Dash, Input, Output, dcc, html
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: test_intv001_interval(dash_dcc) and returns: str