code: def test_pch002_patch_app_pmc_callbacks(dash_duo):
      app = Dash(__name__)
  
      app.layout = html.Div(
          [
              html.Button("Click", id="click"),
              html.Div(
                  id={"type": "output", "index": 0}, className="first"
              ),
              html.Div(
                  id={"type": "output", "index": 1}, className="second"
              ),
          ]
      )
  
      @app.callback(
          Output({"type": "output", "index": ALL}, "children"),
          Input("click", "n_clicks"),
      )
      def on_click(n_clicks):
          if n_clicks is None:
              return ["Foo", "Bar"]
          p1 = Patch()
          p2 = Patch()
  
          p1.append("Bar")
          p2.prepend("Foo")
  
          return [p1, p2]
  
      dash_duo.start_server(app)
  
      dash_duo.find_element("#click").click()
      dash_duo.wait_for_text_to_equal(".first", "FooBar")
      dash_duo.wait_for_text_to_equal(".second", "FooBar")
  
file_path: dash/tests/integration/test_patch.py
imports: import json
  from selenium.webdriver.common.keys import Keys
  from dash import Dash, html, dcc, Input, Output, State, ALL, Patch
label_desc: Use image node_id 2 for calling a global function with example usage: test_pch002_patch_app_pmc_callbacks(dash_duo) and returns: list, list