code: def nested_app(server, path, text):
      app = Dash(__name__, server=server, url_base_pathname=path)
      app.layout = html.Div(id="out")
  
      @app.callback(
          Output("out", "children"), [Input("out", "n_clicks")]
      )
      def out(n):
          return text
  
      return app
  
imports: import datetime
  import flask
  import json
  import pytest
  import re
  from bs4 import BeautifulSoup
  import dash_dangerously_set_inner_html
  import dash_flow_example
  import dash
  from dash import Dash, html, dcc, Input, Output
  from dash.exceptions import PreventUpdate
  from dash.testing.wait import until
label_desc: Use image node_id 11 for calling a global function with example usage: nested_app(server, path, text) and returns: app, text