def METHOD_NAME(data_fixture, enterprise_data_fixture, synced_roles):
    (
        admin,
        builder,
        editor,
        viewer,
        viewer_plus,
        builder_less,
        no_access,
        workspace_1,
        workspace_2,
        database_1,
        database_2,
        database_3,
        table_1_1,
        table_1_2,
        table_2_1,
        table_2_2,
    ) = _populate_test_data(data_fixture, enterprise_data_fixture)
    users = [admin, builder, editor, viewer, viewer_plus, builder_less, no_access]
    result = EnterpriseRolesDataType().annotate_serialized_data(
        workspace_1,
        [
            {
                "user_id": u.id,
                "permissions": RoleAssignmentHandler()
                .get_current_role_assignment(u, workspace_1)
                .role.uid,
            }
            for u in users
        ],
        admin,
    )
    assert result == [
        {
            "permissions": "ADMIN",
            "role_uid": "ADMIN",
            "user_id": admin.id,
            "highest_role_uid": "ADMIN",
        },
        {
            "permissions": "BUILDER",
            "role_uid": "BUILDER",
            "user_id": builder.id,
            "highest_role_uid": "BUILDER",
        },
        {
            "permissions": "EDITOR",
            "role_uid": "EDITOR",
            "user_id": editor.id,
            "highest_role_uid": "EDITOR",
        },
        {
            "permissions": "VIEWER",
            "role_uid": "VIEWER",
            "user_id": viewer.id,
            "highest_role_uid": "VIEWER",
        },
        {
            "permissions": "VIEWER",
            "role_uid": "VIEWER",
            "user_id": viewer_plus.id,
            "highest_role_uid": "BUILDER",
        },
        {
            "permissions": "BUILDER",
            "role_uid": "BUILDER",
            "user_id": builder_less.id,
            "highest_role_uid": "BUILDER",
        },
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": no_access.id,
            "highest_role_uid": "NO_ACCESS",
        },
    ]
    result = EnterpriseRolesDataType().annotate_serialized_data(
        workspace_2,
        [
            {
                "user_id": u.id,
                "permissions": RoleAssignmentHandler()
                .get_current_role_assignment(u, workspace_2)
                .role.uid,
            }
            for u in users
        ],
        WorkspaceUser.objects.get(permissions="ADMIN", workspace=workspace_2).user,
    )
    assert result == [
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": admin.id,
            "highest_role_uid": "NO_ACCESS",
        },
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": builder.id,
            "highest_role_uid": "BUILDER",
        },
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": editor.id,
            "highest_role_uid": "NO_ACCESS",
        },
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": viewer.id,
            "highest_role_uid": "NO_ACCESS",
        },
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": viewer_plus.id,
            "highest_role_uid": "NO_ACCESS",
        },
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": builder_less.id,
            "highest_role_uid": "NO_ACCESS",
        },
        {
            "permissions": "NO_ACCESS",
            "role_uid": "NO_ACCESS",
            "user_id": no_access.id,
            "highest_role_uid": "NO_ACCESS",
        },
    ]