human
I wrote the below code

    def _assertValidVarNames(fieldNames, fileName):
        'screens    a    list    of    names    as    candidate    variable    names.    if    all\n                                names    are    OK,    return    silently.
   else    raise    ImportError    with    msg\n                                '
        if (not all(fieldNames)):
            msg = 'Conditions    file    %s:    Missing    parameter    name(s).
   empty    cell(s)    in    the    first    row?'
            raise ImportError((msg % fileName))
        for name in fieldNames:
            (OK, msg) = isValidVariableName(name)
            if (not OK):
                msg = msg.replace('Variables', 'Parameters    (column    headers)')
                raise ImportError(('Conditions    file    %s:    %s%s"%s"' % (fileName, msg, (os.linesep * 2), name)))
    if (fileName in ['None', 'none', None]):
        if returnFieldNames:
            return ([], [])
        return []
    if (not os.path.isfile(fileName)):
        msg = 'Conditions    file    not    found:    %s'
        raise ImportError((msg % os.path.abspath(fileName)))
    def pandasToDictList(dataframe):
        'Convert    a    pandas    dataframe    to    a    list    of    dicts.\n                                This    helper    function    is    used    by    csv    or    excel    imports    via    pandas\n                                '
        trialsArr = dataframe.to_records(index=False)
        if (trialsArr.shape == ()):
            trialsArr = trialsArr[np.newaxis]
        fieldNames = trialsArr.dtype.names
        _assertValidVarNames(fieldNames, fileName)
        trialList = []
        for (trialN, trialType) in enumerate(trialsArr):
            thisTrial = {}
            for (fieldN, fieldName) in enumerate(fieldNames):
                val = trialsArr[trialN][fieldN]
                if isinstance(val, basestring):
                    if (val.startswith('[') and val.endswith(']')):
                        val = eval(val)
                elif (type(val) == np.string_):
...

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

def importConditions(fileName, returnFieldNames=False, selection=''):