code: def test_detection(coco_visiondata_train):
      # Arrange
      check = ConfusionMatrixReport()
      # Act
      result = check.run(coco_visiondata_train)
  
      # Assert
      num_of_classes = (
          len(coco_visiondata_train.get_observed_classes()) + 1
      )  # plus no-overlapping
      assert_that(
          result.value.shape, le((num_of_classes, num_of_classes))
      )
  
file_path: deepchecks/tests/vision/checks/model_evaluation/confusion_matrix_test.py
imports: from hamcrest import assert_that, equal_to, greater_than, has_length
  from hamcrest import less_than_or_equal_to
  from deepchecks.vision.checks import ConfusionMatrixReport
label_desc: Use image node_id 4 for calling a global function with example usage: test_detection(coco_visiondata_train) without return types