human
Write me a Python program to print ('%r    %2 given the following:
I wrote the below code

    def timed(*args, **kw):
        ts = time.time()
        result = method(*args, **kw)
        te = time.time()
        print ('%r    %2.2f    sec' % (method.__name__, (te - ts)))
        return result
    return timed

What's a good function header?
assistant
#Here is Python program to print ('%r    %2.

def print_duration(method):