code: def extract_pls_rsp(rsp_str):
      
      try:
          rsp = json.loads(rsp_str)
      except ValueError:
          traceback.print_exc()
          err = sys.exc_info()[1]
          err_str = ERROR_STR_PREFIX + str(err)
          return RET_ERROR, err_str, None
  
      error_code = int(rsp['retType'])
  
      if error_code != 1:
          error_str = ERROR_STR_PREFIX + rsp['retMsg']
          return RET_ERROR, error_str, None
  
      return RET_OK, "", rsp
docs: Extract the response of PLS