import time


def wrapped_function_beta(an_argument, jmc=None, jmm=None):
    """ A simple example of a ProgressBar-decorated function.
    
    In comparison to `decorated_function_beta`, the count arguments
    became keyword arguments. The function works with and without
    the ProgressBar.
    """
    if jmm is not None:
        jmm.value=10

    for i in range(10):
        # this is were things are computed
        if jmc is not None:
            jmc.value += 1
        time.sleep(.2)
    return an_argument