human
I wrote the below code

    def is_hidden(filepath):
        name = os.path.basename(os.path.abspath(filepath))
        return (name.startswith(u'.') or has_hidden_attribute(filepath))
    def has_hidden_attribute(filepath):
        try:
            attrs = ctypes.windll.kernel32.GetFileAttributesW(filepath)
            assert (attrs != (-1))
            result = bool((attrs & 2))
        except (AttributeError, AssertionError):
            result = False
        return result
    if os.path.isdir(folder):
        if is_hidden(folder):
            return True
    return False

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

def is_hidden_folder(folder):