code: def run(self):
      dash_app = dash.Dash(__name__)
  
      dash_app.layout = html.Div(
          [
              daq.ToggleSwitch(id="my-toggle-switch", value=False),
              html.Div(id="output"),
          ]
      )
  
      @dash_app.callback(
          Output("output", "children"),
          [Input("my-toggle-switch", "value")],
      )
      def display_output(value):
          if value:
              state = AppState()
              state._request_state()
              return dash_renderjson.DashRenderjson(
                  id="input",
                  data=state._state,
                  max_depth=-1,
                  invert_theme=True,
              )
  
      dash_app.run_server(host=self.host, port=self.port)
  
file_path: pytorch-lightning/docs/source-app/workflows/add_web_ui/dash/intermediate_state.py
imports: import dash
  import dash_daq
  import dash_renderjson
  from dash import html, Input, Output
  from lightning.app import LightningWork, LightningFlow, LightningApp
  from lightning.app.utilities.state import AppState
label_desc: Use image node_id 1 for calling the LitDash obj's underlying member method code with example usage: obj.run() and returns: dash_renderjson