def METHOD_NAME(diabetes_split_dataset_and_model):
    # Arrange
    _, val, model = diabetes_split_dataset_and_model
    # Act
    result = WeakSegmentsPerformance(n_top_features=5).run(val, model)
    segments = result.value['weak_segments_list']
    # Assert
    assert_that(segments, has_length(8))
    assert_that(max(segments.iloc[:, 0]), result.value['avg_score'])
    assert_that(segments.iloc[0, 0], close_to(-95, 1))
    assert_that(segments.iloc[0, 1], equal_to('s2'))