code: def __init__(
      self,
      outfile_path,
      img_prefix: str,
      score_thr: float = 0.1,
      collect_device: str = "cpu",
      nms_thr: float = 0.5,
      prefix: Optional[str] = None,
  ) -> None:
      super().__init__(collect_device=collect_device, prefix=prefix)
      self.outfile_path = outfile_path
      self.score_thr = score_thr
      self.img_prefix = img_prefix
      self.nms_thr = nms_thr
  
      if jsonlines is None:
          raise ImportError(
              'Please run "pip install jsonlines" to install '
              "this package."
          )
  
file_path: mmdetection/mmdet/evaluation/metrics/dump_odvg_results.py
imports: from typing import Any, Optional, Sequence
  from mmcv.ops import batched_nms
  from mmengine.evaluator import BaseMetric
  from mmengine.logging import print_log
  from mmdet.registry import METRICS
label_desc: Use image node_id 1 to create a new DumpODVGResults object from inherited base classes: BaseMetric with example: obj = DumpODVGResults(outfile_path, img_prefix, score_thr, collect_device, nms_thr, prefix)