@wrap_urllib_exceptions<EOL><INDENT>def get_work_result(self, function_arn, invocation_id):<DEDENT>
url = self._get_url(function_arn)<EOL>runtime_logger.info('<STR_LIT>'.format(invocation_id, url))<EOL>request = Request(url)<EOL>request.add_header(HEADER_INVOCATION_ID, invocation_id)<EOL>request.add_header(HEADER_AUTH_TOKEN, self.auth_token)<EOL>response = urlopen(request)<EOL>runtime_logger.info('<STR_LIT>'.format(invocation_id))<EOL>payload = response.read()<EOL>func_err = response.info().get(HEADER_FUNCTION_ERR_TYPE)<EOL>return GetWorkResultOutput(<EOL>payload=payload,<EOL>func_err=func_err)<EOL>
Retrieve the result of the work processed by :code:`function_arn`
with specified :code:`invocation_id`.

:param function_arn: Arn of the Lambda function intended to receive the work for processing.
:type function_arn: string

:param invocation_id: Invocation ID of the work that is being requested
:type invocation_id: string

:returns: The get work result output contains result payload and function error type if the invoking is failed.
:type returns: GetWorkResultOutput