code: def test_segment_performance_illegal_features(
      diabetes_split_dataset_and_model,
  ):
      # Arrange
      _, val, model = diabetes_split_dataset_and_model
  
      # Act & Assert
      assert_that(
          calling(
              SegmentPerformance(feature_1="AGE", feature_2="sex").run
          ).with_args(val, model),
          raises(
              DeepchecksValueError,
              r"\"feature_1\" and \"feature_2\" must be in dataset columns",
          ),
      )
  
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 5 for calling a global function with example usage: test_segment_performance_illegal_features(diabetes_split_dataset_and_model) without return types