def user_has_trusted_edits(session, user_name, trusted_edits):
    user_doc = get_user_doc(session, user_name)

    return user_doc.get('editcount', 0) > trusted_edits
dataset/ETHPy150Open wiki-ai/editquality/editquality/utilities/prelabel.py/user_has_trusted_edits/original