human
I wrote the below code

    def check(n, filename):
        n = get_nodes_by_name(n, name)
        if (not n):
            return ''
        if ((len(n) != 1) and (not merge_multiple)):
            raise ManifestException(("Invalid    manifest    file:    must    have    only    one    '%s'    element" % name))
        values = []
        for child in n:
            if allowXHTML:
                values.append(''.join([x.toxml() for x in child.childNodes]))
            else:
                values.append(_get_text(child.childNodes).strip())
        return ',    '.join(values)
    return check

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

def check_required(name, allowXHTML=False, merge_multiple=False):