code: def test_detection_defaults(coco_visiondata_train):
      # Arrange
      check = WeakSegmentsPerformance()
  
      # Act
      result = check.run(coco_visiondata_train)
  
      # Assert
      assert_that(result.value["avg_score"], close_to(0.691, 0.001))
  
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 1 for calling a global function with example usage: test_detection_defaults(coco_visiondata_train) without return types