code: def test_segment_top_features(diabetes_split_dataset_and_model):
      # Arrange
      _, val, model = diabetes_split_dataset_and_model
  
      # Act
      result = SegmentPerformance().run(val, model).value
  
      # Assert
      assert_that(
          result,
          has_entries(
              {
                  "scores": has_property("shape", (10, 10)),
                  "counts": has_property("shape", (10, 10)),
              }
          ),
      )
      assert_that(result["counts"].sum(), equal_to(146))
  
file_path: deepchecks/tests/tabular/checks/model_evaluation/segment_performance_test.py
imports: from hamcrest import assert_that, calling, close_to, equal_to, greater_than, has_entries, has_length, has_property, raises
  from deepchecks.core.errors import DeepchecksNotSupportedError, DeepchecksValueError
  from deepchecks.tabular.checks.model_evaluation.segment_performance import SegmentPerformance
  from deepchecks.tabular.dataset import Dataset
label_desc: Use image node_id 7 for calling a global function with example usage: test_segment_top_features(diabetes_split_dataset_and_model) without return types