docstr: Check if shape of input in first dimension is consistent with expected IoU values
  (assumes IoU dimension is the first dimension)
  
  Args:
      args: array like inputs with shape function
docstr_tok: ["Check","if","shape","of","input","in","first","dimension","is","consistent","with","expected","IoU","values","(","assumes","IoU","dimension","is","the","first","dimension",")","Args",":","args",":","array","like","inputs","with","shape","function"]
code: def check_number_of_iou(self, *args: np.ndarray) -> None:
      """
      Check if shape of input in first dimension is consistent with expected IoU values
      (assumes IoU dimension is the first dimension)
  
      Args:
          args: array like inputs with shape function
      """
      num_ious = len(self.get_iou_thresholds())
      for arg in args:
          if arg.shape[0] != num_ious:
              raise ValueError(
                  f"Require arg.shape[0] == len(self.get_iou_thresholds()). Got arg.shape[0]={arg.shape[0]}, "
                  f"self.get_iou_thresholds()={self.get_iou_thresholds()}."
              )
  
file_path: MONAI/monai/apps/detection/metrics/coco.py
imports: from __future__ import annotations
  import logging
  import time
  from collections.abc import Sequence
  from typing import Any
  import numpy
label_desc: Use image node_id 3 for calling the COCOMetric obj's underlying member method code with example usage: obj.check_number_of_iou() without return types