human
I wrote the below code

    def time_taken(obj, num):
        'Prints    the    time    taken    by    func    to    run    a    given    number    of    samples.\n\n                                Args:\n                                                obj:    object.    The    class    instance    func    belongs    to.\n                                                num:    int.    The    number    of    samples    to    run    with.\n\n                                Returns:\n                                                Result    of    func.\n                                '
        start = time.time()
        result = func(obj, num)
        end = time.time()
        print ('%s    spent    %f    seconds    for    %d    instances' % (func.__name__, (end - start), num))
        return result
    return time_taken

What's a good function header?
 ... Can you provide a Python code to print ('%s    spent    %f    seconds    for    %d    instances' % (func?
assistant
#Here is Python code to print ('%s    spent    %f    seconds    for    %d    instances' % (func.

def measure_runtime(func):