def METHOD_NAME(coco_visiondata_test):
    res = calculate_metrics({'ap': ObjectDetectionAveragePrecision(iou_range=(0.4, 0.8, 5), average='macro')},
                            coco_visiondata_test)
    assert_that(res['ap'], close_to(0.514, 0.001))