human
I wrote the below code

    global pyoSndServer, Sound, audioDriver, duplex, maxChnls
    Sound = SoundPyo
    global pyo
    try:
        assert pyo
    except NameError:
        import pyo
    class _Server(pyo.Server, ):
        core = core
        logging = logging
        def __del__(self):
            self.stop()
            self.core.wait(0.5)
            self.shutdown()
            self.core.wait(0.5)
            self.logging.debug('pyo    sound    server    shutdown')
    if ('.'.join(map(str, pyo.getVersion())) < '0.6.4'):
        Server = _Server
    else:
        Server = pyo.Server
    if (('pyoSndServer' in globals()) and hasattr(pyoSndServer, 'shutdown')):
        pyoSndServer.stop()
        core.wait(0.5)
        pyoSndServer.shutdown()
        core.wait(0.5)
        pyoSndServer.reinit(sr=rate, nchnls=maxChnls, buffersize=buffer, audio=audioDriver)
        pyoSndServer.boot()
    else:
        if (platform == 'win32'):
            (devNames, devIDs) = pyo.pa_get_output_devices()
            (audioDriver, outputID) = _bestDriver(devNames, devIDs)
            if (outputID is None):
                audioDriver = 'Windows    Default    Output'
                outputID = pyo.pa_get_default_output()
            if (outputID is not None):
                logging.info(('Using    sound    driver:    %s    (ID=%i)' % (audioDriver, outputID)))
                maxOutputChnls = pyo.pa_get_output_max_channels(outputID)
            else:
                logging.warning('No    audio    outputs    found    (no    speakers    connected?')
                return (-1)
            (devNames, devIDs) = pyo.pa_get_input_devices()
            (audioInputName, inputID) = _bestDriver(devNames, devIDs)
            if ((len(devIDs) > 0) and (inputID is None)):
                defaultID = pyo.pa_get_default_input()
                if ((defaultID is not None) and (defaultID != (-1))):
                    audioInputName = 'Windows    Default    Input'
                    inputID = defaultID
                else:
                    inputID =...

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

def init(rate=44100, stereo=True, buffer=128):