code: def _handle_api_result(result: Optional[Dict[str, Any]]) -> Any:
      
      if isinstance(result, dict):
          if result.get('status') == 'failed':
              raise ActionFailed(retcode=result.get('retcode'))
          return result.get('data')
docs: Retrieve 'data' field from the API result object.
  
      :param result: API result that received from HTTP API
      :return: the 'data' field in result object
      :raise ActionFailed: the 'status' field is 'failed'