def synctasklet(func):
taskletfunc = tasklet(func)  <EOL>@utils.wrapping(func)<EOL>def synctasklet_wrapper(*args, **kwds):<EOL><INDENT>__ndb_debug__ = utils.func_info(func)<EOL>return taskletfunc(*args, **kwds).get_result()<EOL><DEDENT>return synctasklet_wrapper<EOL>
Decorator to run a function as a tasklet when called.

    Use this to wrap a request handler function that will be called by
    some web application framework (e.g. a Django view function or a
    webapp.RequestHandler.get method).