def METHOD_NAME(self, response):
    response_func = self._make_aws_response_func(response)
    with mock.patch(
        "botocore.endpoint.Endpoint.make_request", new=response_func
    ):
        yield