code: def opt(u):
      return {
          "label": [
              Button(
                  "click me",
                  id={"type": "button", "index": u},
                  className="label-button",
              ),
              Span(
                  id={"type": "text", "index": u},
                  className="label-result",
              ),
          ],
          "value": u,
      }
  
file_path: dash/tests/integration/renderer/test_component_as_prop.py
imports: import uuid
  from dash import Dash, Input, Output, callback_context, State, MATCH
  from dash_test_components import ComponentAsProp
  from dash.dcc import Checklist, Dropdown
  from dash.html import Button, Div, Span
label_desc: Use image node_id 1 for calling a global function with example usage: opt(u) and returns: dict