human
I wrote the below code

    def empty(text):
        return ((not text) or (not text.strip()))
    def indent_(element, level, last):
        child_count = len(element)
        if child_count:
            if empty(element.text):
                element.text = ('\n' + (indent * (level + 1)))
            if empty(element.tail):
                element.tail = ('\n' + (indent * (level + ((-1) if last else 0))))
            for (i, child) in enumerate(element):
                indent_(child, (level + 1), (i == (child_count - 1)))
        elif empty(element.tail):
            element.tail = ('\n' + (indent * (level + ((-1) if last else 0))))
    return indent_(element, level, True)

What's a good function header?

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

def indent(element, level=0, indent=' DCTB '):