human
I wrote the below code

    paramstr = ',    '.join(params)
    def flatbody():
        for b in body:
            if isinstance(b, (list, tuple)):
                for bb in b:
                    (yield bb)
            else:
                (yield b)
    bodystr = ';\n'.join(flatbody())
    return ('KERNEL    void    %(name)s    (%(paramstr)s)\n                {\n                                %(bodystr)s;\n                }\n                ' % locals())

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

def nvcc_kernel(name, params, body):