code: def test_mnist_error(mnist_visiondata_test):
      # Arrange
      check = MeanAveragePrecisionReport()
      # Act
      assert_that(
          calling(check.run).with_args(mnist_visiondata_test),
          raises(
              DeepchecksNotSupportedError,
              r"Check is irrelevant for task of type TaskType.CLASSIFICATION",
          ),
      )
  
file_path: deepchecks/tests/vision/checks/model_evaluation/mean_average_precision_report_test.py
imports: from hamcrest import assert_that, calling, close_to, greater_than, has_length, raises
  from deepchecks.core.errors import DeepchecksNotSupportedError, ModelValidationError
  from deepchecks.vision.checks import MeanAveragePrecisionReport
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 1 for calling a global function with example usage: test_mnist_error(mnist_visiondata_test) without return types