code: def get_response(data, url):
      headers = {"Content-type": "application/json"}
      response = requests.post(url, json=data, headers=headers)
      response = json.loads(response.content)
      return response
  
file_path: ColossalAI/applications/ColossalQA/examples/webui_demo/webui.py
imports: import argparse
  import json
  import os
  import requests
  import gradio
  from utils import DocAction
label_desc: Use image node_id 2 for calling a global function with example usage: get_response(data, url) and returns: response