docs: def create_routes_and_handler(transmute_func, context):
      """
      return back a handler that is the api generated
      from the transmute_func, and a list of routes
      it should be mounted to.
      """
      @wraps(transmute_func.raw_func)
      def handler():
          exc, result = None, None
          try:
              args, kwargs = ParamExtractorFlask().extract_params(
                  context, transmute_func, request.content_type
              )
              result = transmute_func(*args, **kwargs)
          except Exception as e:
              exc = e
              """
              attaching the traceack is done for you in Python 3, but
              in Python 2 the __traceback__ must be
              attached to the object manually.
              """
              exc.__traceback__ = sys.exc_info()[2]
          """
          transmute_func.process_result handles converting
          the response from the function into the response body,
          the status code that should be returned, and the
          response content-type.
          """
          response = transmute_func.process_result(
              context, result, exc, request.content_type
          )
          return Response(
              response["body"],
              status=response["code"],
              mimetype=response["content-type"],
              headers=response["headers"]
          )
      return (
          _convert_paths_to_flask(transmute_func.paths),
          handler
      )