code: def test_string_property_exception(mnist_visiondata_train):
      # Arrange
      def string_property(images):
          return ["test"] * len(images)
  
      image_properties = [
          {
              "name": "test",
              "method": string_property,
              "output_type": "categorical",
          }
      ]
      check = ImagePropertyOutliers(image_properties=image_properties)
      # Act - Assert check raise exception
      assert_that(
          calling(check.run).with_args(mnist_visiondata_train),
          raises(
              DeepchecksProcessError,
              "For outliers, properties are expected to be only numeric types but "
              "found non-numeric value for property test",
          ),
      )
  
file_path: deepchecks/tests/vision/checks/data_integrity/image_property_outliers_test.py
imports: import numpy
  from hamcrest import all_of, any_of, assert_that, calling, close_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, NotEnoughSamplesError
  from deepchecks.vision.checks import ImagePropertyOutliers
  from deepchecks.vision.utils.image_properties import default_image_properties
label_desc: Use image node_id 8 for calling a global function with example usage: test_string_property_exception(mnist_visiondata_train) and returns: unknown