def _invoke_request_handler(self, function_name):
flask_request = request<EOL>request_data = flask_request.get_data()<EOL>if not request_data:<EOL><INDENT>request_data = b'<STR_LIT:{}>'<EOL><DEDENT>request_data = request_data.decode('<STR_LIT:utf-8>')<EOL>stdout_stream = io.BytesIO()<EOL>stdout_stream_writer = StreamWriter(stdout_stream, self.is_debugging)<EOL>try:<EOL><INDENT>self.lambda_runner.invoke(function_name, request_data, stdout=stdout_stream_writer, stderr=self.stderr)<EOL><DEDENT>except FunctionNotFound:<EOL><INDENT>LOG.debug('<STR_LIT>', function_name)<EOL>return LambdaErrorResponses.resource_not_found(function_name)<EOL><DEDENT>lambda_response, lambda_logs, is_lambda_user_error_response =LambdaOutputParser.get_lambda_output(stdout_stream)<EOL>if self.stderr and lambda_logs:<EOL><INDENT>self.stderr.write(lambda_logs)<EOL><DEDENT>if is_lambda_user_error_response:<EOL><INDENT>return self.service_response(lambda_response,<EOL>{'<STR_LIT:Content-Type>': '<STR_LIT:application/json>', '<STR_LIT>': '<STR_LIT>'},<EOL><NUM_LIT:200>)<EOL><DEDENT>return self.service_response(lambda_response, {'<STR_LIT:Content-Type>': '<STR_LIT:application/json>'}, <NUM_LIT:200>)<EOL>
Request Handler for the Local Lambda Invoke path. This method is responsible for understanding the incoming
request and invoking the Local Lambda Function

Parameters
----------
function_name str
    Name of the function to invoke

Returns
-------
A Flask Response response object as if it was returned from Lambda