def S_ISDIR(mode):
    'Return True if mode is from a directory.'
    return (S_IFMT(mode) == S_IFDIR)
Return True if mode is from a directory.
def S_ISDIR(mode):
    
    return (S_IFMT(mode) == S_IFDIR)