code: def test_exception_on_custom_task(mnist_train_custom_task):
      # Arrange
      check = LabelPropertyOutliers()
  
      # Act & Assert exception
      assert_that(
          calling(check.run).with_args(mnist_train_custom_task),
          raises(
              DeepchecksProcessError,
              "task type TaskType.OTHER does not have default label properties "
              "defined",
          ),
      )
  
file_path: deepchecks/tests/vision/checks/data_integrity/label_property_outliers_test.py
imports: from hamcrest import all_of, any_of, assert_that, calling, close_to, contains_exactly, equal_to, has_entries, has_key, has_length, has_properties, instance_of, is_, raises
  from hamcrest.core.matcher import Matcher
  from deepchecks.core import CheckResult
  from deepchecks.core.errors import DeepchecksProcessError
  from deepchecks.vision.checks import LabelPropertyOutliers
  from deepchecks.vision.utils.label_prediction_properties import DEFAULT_OBJECT_DETECTION_LABEL_PROPERTIES
label_desc: Use image node_id 8 for calling a global function with example usage: test_exception_on_custom_task(mnist_train_custom_task) without return types