human
I wrote the below code

    if (_func is not None):
        return NonTransactional()(_func)
    def outer_wrapper(func):
        def inner_wrapper(*args, **kwds):
            if (not IsInTransaction()):
                return func(*args, **kwds)
            if (not allow_existing):
                raise datastore_errors.BadRequestError('Function    cannot    be    called    from    within    a    transaction.')
            txn_connection = _PopConnection()
            try:
                return func(*args, **kwds)
            finally:
                _PushConnection(txn_connection)
        return inner_wrapper
    return outer_wrapper

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

@datastore_rpc._positional(1)
def NonTransactional(_func=None, allow_existing=True):