code: def maybe_transactional(func):
      
      @wraps(func)
      def wrapper(*args, **kwargs):
          commit = kwargs.get("commit", True)
          with transaction(commit=commit):
              return func(*args, **kwargs)
      return wrapper
docs: Variant of `transactional` that will not commit if there's an argument `commit` with a falsey value.
  
      Useful for dry-run style operations.