code: def amber(base_url, api_key, quote, policy_id, proxies):
      headers = {
          "Content-Type": "application/json",
          "Accept": "application/json",
          "x-api-key": api_key,
      }
      payload = OrderedDict()
      payload["quote"] = base64.b64encode(quote).decode()
      if len(policy_id) > 0:
          payload["policy_ids"] = policy_id
      try:
          resp = requests.post(
              url=base_url + "/appraisal/v1/attest",
              data=json.dumps(payload),
              headers=headers,
              verify=use_secure_cert,
              proxies=proxies,
          )
          resp_dict = json.loads(resp.text)
          if len(resp_dict["token"]) > 0:
              result = 0
          else:
              result = -1
      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 3 for calling a global function with example usage: amber(base_url, api_key, quote, policy_id, proxies) and returns: result