def dump(u, *args, **kwargs):
return dict(<EOL>id=u.id,<EOL>email=u.email,<EOL>password=u.password,<EOL>password_salt=u.password_salt,<EOL>note=u.note,<EOL>full_name=u.full_name if hasattr(u, '<STR_LIT>') else '<STR_LIT>'.format(<EOL>u.given_names, u.family_name),<EOL>settings=u.settings,<EOL>nickname=u.nickname,<EOL>last_login=dt2iso_or_empty(u.last_login))<EOL>
Dump the users as a list of dictionaries.

    :param u: User to be dumped.
    :type u: `invenio.modules.accounts.models.User [Invenio2.x]` or namedtuple.
    :returns: User serialized to dictionary.
    :rtype: dict