code: def test_coco_area_param(coco_visiondata_test):
      # Arrange
      check = MeanAveragePrecisionReport(area_range=(40**2, 100**2))
  
      # Act
      result = check.run(coco_visiondata_test)
  
      # Assert
      df = result.value
      assert_that(df, has_length(4))
  
      assert_that(
          df.loc["All", "mAP@[.50::.95] (avg.%)"],
          close_to(0.409, 0.001),
      )
      assert_that(df.loc["All", "mAP@.50 (%)"], close_to(0.566, 0.001))
      assert_that(df.loc["All", "mAP@.75 (%)"], close_to(0.425, 0.001))
  
      assert_that(
          df.loc["Small (area < 40^2)", "mAP@[.50::.95] (avg.%)"],
          close_to(0.191, 0.001),
      )
      assert_that(
          df.loc["Small (area < 40^2)", "mAP@.50 (%)"],
          close_to(0.324, 0.001),
      )
      assert_that(
          df.loc["Small (area < 40^2)", "mAP@.75 (%)"],
          close_to(0.179, 0.001),
      )
  
      assert_that(
          df.loc[
              "Medium (40^2 < area < 100^2)", "mAP@[.50::.95] (avg.%)"
          ],
          close_to(0.414, 0.001),
      )
      assert_that(
          df.loc["Medium (40^2 < area < 100^2)", "mAP@.50 (%)"],
          close_to(0.622, 0.001),
      )
      assert_that(
          df.loc["Medium (40^2 < area < 100^2)", "mAP@.75 (%)"],
          close_to(0.388, 0.001),
      )
  
      assert_that(
          df.loc["Large (area < 100^2)", "mAP@[.50::.95] (avg.%)"],
          close_to(0.542, 0.001),
      )
      assert_that(
          df.loc["Large (area < 100^2)", "mAP@.50 (%)"],
          close_to(0.673, 0.001),
      )
      assert_that(
          df.loc["Large (area < 100^2)", "mAP@.75 (%)"],
          close_to(0.592, 0.001),
      )
      assert_that(result.display, has_length(greater_than(0)))
  
file_path: deepchecks/tests/vision/checks/model_evaluation/mean_average_precision_report_test.py
imports: from hamcrest import assert_that, calling, close_to, greater_than, has_length, raises
  from deepchecks.core.errors import DeepchecksNotSupportedError, ModelValidationError
  from deepchecks.vision.checks import MeanAveragePrecisionReport
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 3 for calling a global function with example usage: test_coco_area_param(coco_visiondata_test) without return types