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

    def _trimmed_stde_1D(a, low_limit, up_limit, low_inclusive, up_inclusive):
        'Returns    the    standard    error    of    the    trimmed    mean    for    a    1D    input    data.'
        n = a.count()
        idx = a.argsort()
        if low_limit:
            if low_inclusive:
                lowidx = int((low_limit * n))
            else:
                lowidx = np.round((low_limit * n))
            a[idx[:lowidx]] = masked
        if (up_limit is not None):
            if up_inclusive:
                upidx = (n - int((n * up_limit)))
            else:
                upidx = (n - np.round((n * up_limit)))
            a[idx[upidx:]] = masked
        a[idx[:lowidx]] = a[idx[lowidx]]
        a[idx[upidx:]] = a[idx[(upidx - 1)]]
        winstd = a.std(ddof=1)
        return (winstd / (((1 - low_limit) - up_limit) * np.sqrt(len(a))))
    a = ma.array(a, copy=True, subok=True)
    a.unshare_mask()
    if (limits is None):
        return (a.std(axis=axis, ddof=1) / ma.sqrt(a.count(axis)))
    if ((not isinstance(limits, tuple)) and isinstance(limits, float)):
        limits = (limits, limits)
    (lolim, uplim) = limits
    errmsg = 'The    proportion    to    cut    from    the    %s    should    be    between    0.    and    1.'
    if (lolim is not None):
        if ((lolim > 1.0) or (lolim < 0)):
            raise ValueError(((errmsg % 'beginning') + ('(got    %s)' % lolim)))
    if (uplim is not None):
        if ((uplim > 1.0) or (uplim < 0)):
            raise ValueError(((errmsg % 'end') + ('(got    %s)' % uplim)))
    (loinc, upinc) = inclusive
    if (axis is None):
        return _trimmed_stde_1D(a.ravel(), lolim, uplim, loinc, upinc)
    else:
        if (a.ndim > 2):
            raise ValueError(("Array    'a'    must    be    at    most    two    dimensional,    but    got    a.ndim    =    %d" % a.ndim))
        return ma.apply_along_axis(_trimmed_stde_1D, axis, a, lolim, uplim, loinc, upinc)

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

def trimmed_stde(a, limits=(0.1, 0.1), inclusive=(1, 1), axis=None):