def _create_function(self, request, full_url, headers):
        lambda_backend = self.get_lambda_backend(full_url)
        spec = json.loads(request.body.decode('utf-8'))
        try:
            fn = lambda_backend.create_function(spec)
        except __HOLE__ as e:
            return 400, headers, json.dumps({"Error": {"Code": e.args[0], "Message": e.args[1]}})
        else:
            config = fn.get_configuration()
            return 201, headers, json.dumps(config)
dataset/ETHPy150Open spulec/moto/moto/awslambda/responses.py/LambdaResponse._create_function