code: def test_run_with_scorer(text_classification_dataset_mock):
      """Test that the check runs with a scorer override"""
      # Arrange
      check = SingleDatasetPerformance(scorers=["f1_macro"])
  
      # Act
      result = check.run(
          text_classification_dataset_mock, predictions=[0, 1, 1]
      )
  
      # Assert
      assert_that(result.value.values[0][-1], close_to(0.666, 0.001))
  
imports: import numpy
  from hamcrest import assert_that, calling, close_to, equal_to, has_items, raises
  from deepchecks.core.errors import DeepchecksValueError, ValidationError
  from deepchecks.nlp.checks.model_evaluation.single_dataset_performance import SingleDatasetPerformance
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 1 for calling a global function with example usage: test_run_with_scorer(text_classification_dataset_mock) without return types