def nt_cursor(func):
@wraps(func)<EOL>def wrapper(cls, *args, **kwargs):<EOL><INDENT>with (yield from cls.get_cursor(_CursorType.NAMEDTUPLE)) as c:<EOL><INDENT>return (yield from func(cls, c, *args, **kwargs))<EOL><DEDENT><DEDENT>return wrapper<EOL>
Decorator that provides a namedtuple cursor to the calling function

Adds the cursor as the second argument to the calling functions

Requires that the function being decorated is an instance of a class or object
that yields a cursor from a get_cursor(cursor_type=CursorType.NAMEDTUPLE) coroutine or provides such an object
as the first argument in its signature

Yields:
    A client-side namedtuple cursor