human
I wrote the below code

    def f(local_opt):
        name = ((kwargs and kwargs.pop('name')) or local_opt.__name__)
        if isinstance(local_opt, theano.gof.DB):
            opt = local_opt
        else:
            opt = theano.gof.local_optimizer(tracks)(local_opt)
        gpu_optimizer2.register(name, opt, 'fast_run', 'gpuarray', *tags)
        return local_opt
    return f

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

def register_opt2(tracks, *tags, **kwargs):