human
I wrote the below code

    if ((len(dargs) == 1) and callable(dargs[0])):
        def wrap_simple(f):
            @six.wraps(f)
            def wrapped_f(*args, **kw):
                return Retrying().call(f, *args, **kw)
            return wrapped_f
        return wrap_simple(dargs[0])
    else:
        def wrap(f):
            @six.wraps(f)
            def wrapped_f(*args, **kw):
                return Retrying(*dargs, **dkw).call(f, *args, **kw)
            return wrapped_f
        return wrap

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

def retry(*dargs, **dkw):