code: def bigdl_attestation_service(
      base_url, app_id, api_key, quote, policy_id
  ):
      headers = {"Content-Type": "application/json"}
      payload = OrderedDict()
      payload["appID"] = app_id
      payload["apiKey"] = api_key
      payload["quote"] = base64.b64encode(quote).decode()
      if len(policy_id) > 0:
          payload["policyID"] = policy_id
      try:
          resp = requests.post(
              url="https://" + base_url + "/verifyQuote",
              data=json.dumps(payload),
              headers=headers,
              verify=use_secure_cert,
          )
          resp_dict = json.loads(resp.text)
          result = resp_dict["result"]
      except (json.JSONDecodeError, KeyError):
          result = -1
      return result
  
imports: import requests
  import json
  import base64
  from collections import OrderedDict
label_desc: Use image node_id 1 for calling a global function with example usage: bigdl_attestation_service(base_url, app_id, api_key, quote, policy_id) and returns: result