@staticmethod<EOL><INDENT>def _parse_lambda_output(lambda_output, binary_types, flask_request):<DEDENT>
json_output = json.loads(lambda_output)<EOL>if not isinstance(json_output, dict):<EOL><INDENT>raise TypeError("<STR_LIT>", type(json_output))<EOL><DEDENT>status_code = json_output.get("<STR_LIT>") or <NUM_LIT:200><EOL>headers = CaseInsensitiveDict(json_output.get("<STR_LIT>") or {})<EOL>body = json_output.get("<STR_LIT:body>") or "<STR_LIT>"<EOL>is_base_64_encoded = json_output.get("<STR_LIT>") or False<EOL>try:<EOL><INDENT>status_code = int(status_code)<EOL>if status_code <= <NUM_LIT:0>:<EOL><INDENT>raise ValueError<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>message = "<STR_LIT>"<EOL>LOG.error(message)<EOL>raise TypeError(message)<EOL><DEDENT>if "<STR_LIT:Content-Type>" not in headers:<EOL><INDENT>LOG.info("<STR_LIT>")<EOL>headers["<STR_LIT:Content-Type>"] = "<STR_LIT:application/json>"<EOL><DEDENT>if LocalApigwService._should_base64_decode_body(binary_types, flask_request, headers, is_base_64_encoded):<EOL><INDENT>body = base64.b64decode(body)<EOL><DEDENT>return status_code, headers, body<EOL>
Parses the output from the Lambda Container

:param str lambda_output: Output from Lambda Invoke
:return: Tuple(int, dict, str, bool)