code: def nt_cursor(func):
      
  
      @wraps(func)
      def wrapper(cls, *args, **kwargs):
          with (yield from cls.get_cursor(_CursorType.NAMEDTUPLE)) as c:
              return (yield from func(cls, c, *args, **kwargs))
  
      return wrapper
docs: 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