code: def test_detection_condition(coco_visiondata_train):
      check = (
          WeakSegmentsPerformance().add_condition_segments_relative_performance_greater_than()
      )
  
      result = check.run(coco_visiondata_train)
      condition_result = result.conditions_results
  
      # Assert
      assert_that(
          condition_result,
          has_items(
              equal_condition_result(
                  is_pass=False,
                  name="The relative performance of weakest segment is greater than 80% of average model performance.",
                  details="Found a segment with mean iou of 0.409 in comparison to an average score of 0.691 "
                  "in sampled data.",
              )
          ),
      )
  
imports: from hamcrest import assert_that, calling, close_to, has_items, raises
  from deepchecks.core.errors import DeepchecksProcessError
  from deepchecks.vision.checks import WeakSegmentsPerformance
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 2 for calling a global function with example usage: test_detection_condition(coco_visiondata_train) without return types