code: def test_pch003_patch_children(dash_duo):
      app = Dash(__name__)
      app.layout = html.Div(
          [
              html.Div(
                  [
                      dcc.Input(value="", id="children-value"),
                      html.Button("Add", id="add-children"),
                  ]
              ),
              html.Div([html.Div("init", id="initial")], id="output"),
          ]
      )
  
      @app.callback(
          Output("output", "children"),
          Input("add-children", "n_clicks"),
          State("children-value", "value"),
          prevent_initial_call=True,
      )
      def on_click(_, value):
          p = Patch()
          p.append(html.Div(value, id=value))
  
          return p
  
      dash_duo.start_server(app)
  
      _input = dash_duo.find_element("#children-value")
      _input.send_keys("new-child")
      dash_duo.find_element("#add-children").click()
  
      dash_duo.wait_for_text_to_equal("#new-child", "new-child")
      dash_duo.wait_for_text_to_equal("#initial", "init")
  
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 3 for calling a global function with example usage: test_pch003_patch_children(dash_duo) and returns: p