human
I wrote the below code

    def is_hidden(filepath):
        name = ek(os.path.basename, ek(os.path.abspath, filepath))
        return ((name == u'@eaDir') or name.startswith(u'.') or has_hidden_attribute(filepath))
    def has_hidden_attribute(filepath):
        try:
            attrs = ctypes.windll.kernel32.GetFileAttributesW(ctypes.c_wchar_p(six.text_type(filepath)))
            assert (attrs != (-1))
            result = bool((attrs & 2))
        except (AttributeError, AssertionError, OSError, IOError):
            result = False
        return result
    if (ek(os.path.isdir, folder) and 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):