class_docstr: Confusion matrix at thresholds.
  
  It computes the average precision of object detections for a single class and
  a single iou_threshold.
class_docstr_tok: ["Confusion","matrix","at","thresholds",".","It","computes","the","average","precision","of","object","detections","for","a","single","class","and","a","single","iou_threshold","."]
code: def _default_name(self) -> str:
      return AVERAGE_PRECISION_NAME
  
imports: import logging
  import math
  from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  from tensorflow_model_analysis.metrics import confusion_matrix_metrics
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.metrics import object_detection_confusion_matrix_metrics
label_desc: Use image node_id 2 for calling the COCOAveragePrecision obj's underlying member method code with example usage: obj._default_name() and returns: AVERAGE_PRECISION_NAME