code: def compute_metrics(self, results: list) -> dict:
      with jsonlines.open(self.outfile_path, mode="w") as writer:
          writer.write_all(results)
      print_log(
          f"Results has been saved to {self.outfile_path}.",
          logger="current",
      )
      return {}
  
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 3 for calling the DumpODVGResults obj's underlying member method code with example usage: obj.compute_metrics(results) and returns: dict