code: def post_request(ip, port, action, payload):
      url = construct_url(ip, port, action)
      params = request_params(payload)
      create_resp = requests.post(
          url=url,
          data=json.dumps(params),
          headers=headers,
          timeout=100,
          verify=use_secure_cert,
      )
      result = json.loads(create_resp.text)["result"]
      return result
  
file_path: BigDL/python/ppml/src/bigdl/ppml/kms/ehsm/caller.py
imports: import requests
  import json
  import base64
  import time
  import random
  import hmac
  from hashlib import sha256
  import os
  from collections import OrderedDict
  import urllib.parse
  from requests.packages import urllib3
label_desc: Use image node_id 3 for calling a global function with example usage: post_request(ip, port, action, payload) and returns: result