human
I wrote the below code

    global pexpect
    if (not pexpect):
        import pexpect
    class Spawn(pexpect.spawn, ):
        'Subprocess    is    sudo,    so    we    have    to    sudo    kill    it'
        def close(self, force=False):
            srun(('kill    %d' % self.pid))
    arch = archFor(kernel)
    log('*    Detected    kernel    architecture', arch)
    if NoKVM:
        accel = 'tcg'
    else:
        accel = 'kvm'
    cmd = ['sudo', ('qemu-system-' + arch), ('-machine    accel=%s' % accel), '-nographic', '-netdev    user,id=mnbuild', '-device    virtio-net,netdev=mnbuild', ('-m    %s' % memory), '-k    en-us', '-kernel', kernel, '-initrd', initrd, ('-drive    file=%s,if=virtio' % cow), '-append    "root=/dev/vda1    init=/sbin/init    console=ttyS0"    ']
    if Forward:
        cmd += sum([['-redir', f] for f in Forward], [])
    if (cpuCores > 1):
        cmd += [('-smp    cores=%s' % cpuCores)]
    cmd = '    '.join(cmd)
    log('*    BOOTING    VM    FROM', cow)
    log(cmd)
    vm = Spawn(cmd, timeout=TIMEOUT, logfile=logfile)
    return vm

What's a good function header?

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

def boot(cow, kernel, initrd, logfile, memory=1024, cpuCores=1):