human
I wrote the below code

    @extension.make_extension(trigger=(1, 'epoch'), priority=(-100))
    def snapshot_object(trainer):
        _snapshot_object(trainer, target, filename.format(trainer), savefun)
    return snapshot_object

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

def snapshot_object(target, filename, savefun=npz.save_npz):