def METHOD_NAME(roles):
    if 'system_librarian' in roles:
        roles.remove('system_librarian')
        roles.append(UserRole.FULL_PERMISSIONS)
    if 'librarian' in roles:
        roles.remove('librarian')
        roles.extend([
            UserRole.PROFESSIONAL_READ_ONLY,
            UserRole.ACQUISITION_MANAGER,
            UserRole.CATALOG_MANAGER,
            UserRole.CIRCULATION_MANAGER,
            UserRole.USER_MANAGER
        ])
    return roles