code: def application(handler, adapter_cls=WerkzeugAdapter):
      
      adapter = adapter_cls()
  
      def wrapper(environ, start_response):
          request = adapter.to_request(environ)
          response = handler(request)
          response_func = adapter.from_response(response)
          return response_func(environ, start_response)
  
      return wrapper
docs: Converts an anillo function based handler in a
      wsgi compiliant application function.
  
      :param adapter_cls: the wsgi adapter implementation (default: wekrzeug)
      :returns: wsgi function
      :rtype: callable