def METHOD_NAME(name, doc=None):
    """Transaction Decorator
    Decorate any function with ``@doc.carryout('Txn name')``
    and the funciton will run within an Transaction context.
    Args:
        name (str): Name of the Transaction
    >>> @doc.carryout('Do Something')
    >>> def set_some_parameter(wall, value):
    >>>     wall.parameters['Comments'].value = value
    >>>
    >>> set_some_parameter(wall, value)
    """
    from functools import wraps
    def wrap(f):
        @wraps(f)
        def wrapped_f(*args, **kwargs):
            with Transaction(name, doc=doc):
                return_value = f(*args, **kwargs)
            return return_value
        return wrapped_f
    return wrap