code: def store_app():
      app = Dash(__name__)
      app.uuid = UUID
      app.layout = html.Div(
          [
              dcc.Store(
                  id="memory", storage_type="memory", data=app.uuid
              ),
              dcc.Store(id="local", storage_type="local"),
              dcc.Store(id="session", storage_type="session"),
              html.Button("click me", id="btn"),
              html.Button("clear data", id="clear-btn"),
              html.Div(id="output"),
          ]
      )
  
      @app.callback(
          Output("output", "children"),
          [Input("memory", "modified_timestamp")],
          [State("memory", "data")],
      )
      def write_memory(modified_ts, data):
          if data is None:
              return ""
          return json.dumps(data)
  
      @app.callback(
          [
              Output("local", "clear_data"),
              Output("memory", "clear_data"),
              Output("session", "clear_data"),
          ],
          [Input("clear-btn", "n_clicks")],
      )
      def on_clear(n_clicks):
          if n_clicks is None:
              raise PreventUpdate
          return True, True, True
  
      @app.callback(
          [
              Output("memory", "data"),
              Output("local", "data"),
              Output("session", "data"),
          ],
          [Input("btn", "n_clicks")],
      )
      def on_click(n_clicks):
          if n_clicks is None:
              raise PreventUpdate
          return ({"n_clicks": n_clicks},) * 3
  
      yield app
  
file_path: dash/components/dash-core-components/tests/integration/store/conftest.py
imports: import sys
  import json
  import pytest
  import uuid
  from dash import Dash, Input, State, Output, dcc, html
  from dash.exceptions import PreventUpdate
label_desc: Use image node_id 1 for calling a global function with example usage: store_app() and returns: json, True,  True,  True, unknown, str