code: def json_resp(data, status=200, headers=None):
      return Response(
          json.dumps(data),
          status=status,
          content_type="application/json",
          headers=headers or [],
      )
  
imports: import io
  import json
  import logging
  import socket
  from werkzeug import routing
  from werkzeug import serving
  from werkzeug import exceptions
  from werkzeug.middleware.shared_data import SharedDataMiddleware
  from werkzeug.wrappers import Request, Response
label_desc: Use image node_id 2 for calling a global function with example usage: json_resp(data, status, headers) and returns: Response