def METHOD_NAME(output: typing.Iterable[bytes]) -> "WSGIApplication":
    def application(environ, start_response):
        status = "200 OK"
        response_headers = [
            ("Content-type", "text/plain"),
        ]
        start_response(status, response_headers)
        for item in output:
            yield item
    return wsgiref.validate.validator(application)