class_docstr: Summarize mean average precision metrics on a dataset and model per IoU and bounding box area.
  
  Parameters
  ----------
  area_range: tuple, default: (32**2, 96**2)
      Slices for small/medium/large buckets.
  {additional_check_init_params:2*indent}
class_docstr_tok: ["Summarize","mean","average","precision","metrics","on","a","dataset","and","model","per","IoU","and","bounding","box","area",".","Parameters","--","--","--","--","--","area_range",":","tuple",",","default",":","(","32","*","*","2",",","96","*","*","2",")","Slices","for","small\/medium\/large","buckets",".","{","additional_check_init_params:2","*","indent","}"]
docstr: Initialize run by asserting task type and initializing metric.
docstr_tok: ["Initialize","run","by","asserting","task","type","and","initializing","metric","."]
code: def initialize_run(
      self, context: Context, dataset_kind: DatasetKind = None
  ):
      """Initialize run by asserting task type and initializing metric."""
      context.assert_task_type(TaskType.OBJECT_DETECTION)
      self._ap_metric = ObjectDetectionAveragePrecision(
          return_option=None, area_range=self.area_range
      )
  
imports: import math
  from typing import Optional, Tuple, TypeVar
  import numpy
  import pandas
  import plotly.express
  from deepchecks.core import CheckResult, ConditionResult, DatasetKind
  from deepchecks.core.condition import ConditionCategory
  from deepchecks.utils.strings import format_number
  from deepchecks.vision._shared_docs import docstrings
  from deepchecks.vision.base_checks import SingleDatasetCheck
  from deepchecks.vision.context import Context
  from deepchecks.vision.metrics_utils.detection_precision_recall import ObjectDetectionAveragePrecision
  from deepchecks.vision.vision_data import TaskType
  from deepchecks.vision.vision_data.batch_wrapper import BatchWrapper
label_desc: Use image node_id 2 for calling the MeanAveragePrecisionReport obj's underlying member method code with example usage: obj.initialize_run(context, dataset_kind) without return types