code: def make_wsgi_app(matching, not_found_app=not_found_app):
      
      def wsgi_app(environ, start_response):
          environ['matcha.matching'] = matching
          try:
              matched_case, matched_dict = matching(environ)
          except NotMatched:
              return not_found_app(environ, start_response)
          else:
              environ['matcha.matched_dict'] = matched_dict
              return matched_case(environ, start_response)
      return wsgi_app
docs: Making a WSGI application from Matching object
      registered other WSGI applications on each 'case' argument.