human
Here's a good function header given the following:
I wrote the below code

    experiment_code = kwargs.get('experiment_code', (-1))
    if (experiment_code != (-1)):
        del kwargs['experiment_code']
    else:
        experiment_code = None
    session_code = kwargs.get('session_code', None)
    if session_code:
        del kwargs['session_code']
    elif experiment_code:
        import psychopy.data
        session_code = 'S_{0}'.format(psychopy.data.getDateStr())
    psychopy_monitor_name = kwargs.get('psychopy_monitor_name', None)
    if psychopy_monitor_name:
        del kwargs['psychopy_monitor_name']
    datastore_name = None
    if (_DATA_STORE_AVAILABLE is True):
        datastore_name = kwargs.get('datastore_name', None)
        if (datastore_name is not None):
            del kwargs['datastore_name']
        else:
            datastore_name = None
    monitor_devices_config = None
    if kwargs.get('iohub_config_name'):
        io_config = load(file(kwargs.get('iohub_config_name'), 'r'), Loader=Loader)
        monitor_devices_config = io_config.get('monitor_devices')
    ioConfig = None
    if (monitor_devices_config is None):
        device_dict = kwargs
        device_list = []
        def isFunction(func):
            import types
            return isinstance(func, types.FunctionType)
        def func2str(func):
            return ('%s.%s' % (func.__module__, func.__name__))
        def configfuncs2str(config):
            for (k, v) in list(config.items()):
                if isinstance(v, dict):
                    configfuncs2str(v)
                if isFunction(v):
                    config[k] = func2str(v)
        configfuncs2str(device_dict)
        if ('Display' not in device_dict):
            if psychopy_monitor_name:
                device_list.append(dict(Display={'psychopy_monitor_name': psychopy_monitor_name, 'override_using_psycho_settings': True}))
            else:
                device_list.append(dict(Display={'override_using_psycho_settings': False}))
        else:
            device_list.append(dict(Display=device_dict['Display']))
          ...

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

def launchHubServer(**kwargs):