code: def test_segment_performance_diabetes_without_display(
      diabetes_split_dataset_and_model,
  ):
      # Arrange
      _, val, model = diabetes_split_dataset_and_model
  
      # Act
      result = SegmentPerformance(feature_1="age", feature_2="sex").run(
          val, model, with_display=False
      )
  
      # Assert
      assert_that(
          result.value,
          has_entries(
              {
                  "scores": has_property("shape", (10, 2)),
                  "counts": has_property("shape", (10, 2)),
              }
          ),
      )
      assert_that(result.value["scores"].mean(), close_to(-53, 1))
      assert_that(result.value["counts"].sum(), equal_to(146))
      assert_that(result.display, has_length(0))
  
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 4 for calling a global function with example usage: test_segment_performance_diabetes_without_display(diabetes_split_dataset_and_model) without return types