human
Write me a Python program to print msg given the following:
I wrote the below code

    def deco_retry(f):
        def f_retry(*args, **kwargs):
            (mtries, mdelay) = (tries, delay)
            try_one_last_time = True
            while (mtries > 1):
                try:
                    return f(*args, **kwargs)
                    try_one_last_time = False
                    break
                except ExceptionToCheck as e:
                    msg = ('%s,    Retrying    in    %d    seconds...' % (str(e), mdelay))
                    if logger:
                        logger.warning(msg)
                    else:
                        print msg
                    time.sleep(mdelay)
                    mtries -= 1
                    mdelay *= backoff
            if try_one_last_time:
                return f(*args, **kwargs)
            return
        return f_retry
    return deco_retry

What's a good function header?
assistant
#Here is Python program to print msg
.

def retry(ExceptionToCheck, tries=4, delay=3, backoff=2, logger=None):