code: def gen_quote():
      data = request.get_json()
      user_report_data = data.get("user_report_data")
      try:
          quote_b = quote_generator.generate_tdx_quote(user_report_data)
          quote = base64.b64encode(quote_b).decode("utf-8")
          return {"quote": quote}
      except Exception as e:
          return {"quote": "quote generation failed: %s" % (e)}
  
file_path: BigDL/ppml/tdx/docker/trusted-bigdl-llm/finetune/docker/bigdl_aa.py
imports: import quote_generator
  from flask import Flask, request
  from configparser import ConfigParser
  import ssl, os
  import base64
  import requests
  import subprocess
  import shlex
label_desc: Use image node_id 1 for calling a global function with example usage: gen_quote() and returns: dict, dict