code: def check_result(res, action):
      res_json = json.loads(res.text)
      if res_json["code"] == 200:
          print("%s successfully \n" % (action))
          return True
      else:
          print(
              "%s failed, error message: %s \n"
              % (action, res_json["message"])
          )
          return False
  
file_path: BigDL/ppml/base/register-mrenclave.py
imports: import requests
  import json
  import argparse
  import base64
  import time
  import random
  import hmac
  from hashlib import sha256
  from collections import OrderedDict
  import urllib.parse
  from requests.packages import urllib3
label_desc: Use image node_id 4 for calling a global function with example usage: check_result(res, action) and returns: True, False