code: def is_correct_image_property_outliers_result(
      with_display: bool = True,
  ) -> Matcher:
      value_assertion = all_of(
          instance_of(dict),
          *[
              has_key(single_property["name"])
              for single_property in default_image_properties
          ],
      )
  
      if with_display:
          display_assertion = all_of(
              instance_of(list),
              any_of(
                  has_length(1),
                  has_length(2),
                  has_length(3),
                  has_length(4),
              ),
          )
      else:
          display_assertion = all_of(
              instance_of(list),
              has_length(0),
          )
  
      return all_of(
          instance_of(CheckResult),
          has_properties(
              {"value": value_assertion, "display": display_assertion}
          ),
      )
  
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 1 for calling a global function with example usage: is_correct_image_property_outliers_result(with_display) and returns: all_of