code: def test_cbcx001_modified_response(dash_duo):
      app = Dash(__name__)
      app.layout = html.Div(
          [dcc.Input(id="input", value="ab"), html.Div(id="output")]
      )
  
      @app.callback(
          Output("output", "children"), [Input("input", "value")]
      )
      def update_output(value):
          callback_context.response.set_cookie(
              "dash_cookie", value + " - cookie"
          )
          return value + " - output"
  
      dash_duo.start_server(app)
      dash_duo.wait_for_text_to_equal("#output", "ab - output")
      input1 = dash_duo.find_element("#input")
  
      input1.send_keys("cd")
  
      dash_duo.wait_for_text_to_equal("#output", "abcd - output")
      cookie = dash_duo.driver.get_cookie("dash_cookie")
      # cookie gets json encoded
      assert cookie["value"] == '"abcd - cookie"'
  
      assert not dash_duo.get_logs()
  
file_path: dash/tests/integration/callbacks/test_callback_context.py
imports: import json
  import operator
  import pytest
  from dash import Dash, ALL, Input, Output, html, dcc, callback_context, ctx
  from dash.exceptions import PreventUpdate, MissingCallbackContextException
  import dash.testing.wait
  from selenium.webdriver.common.action_chains import ActionChains
label_desc: Use image node_id 1 for calling a global function with example usage: test_cbcx001_modified_response(dash_duo) and returns: unknown