code: def __init__(self, collect_device="cpu", dummy_metrics=None):
      super().__init__(collect_device=collect_device)
      self.dummy_metrics = dummy_metrics
  
imports: import os.path
  import tempfile
  from unittest import TestCase
  import torch
  import torch.nn
  from mmengine.evaluator import BaseMetric
  from mmengine.model import BaseModel
  from mmengine.optim import OptimWrapper
  from mmengine.registry import MODEL_WRAPPERS
  from mmengine.runner import Runner
  from torch.utils.data import Dataset
  from mmdet.registry import DATASETS
  from mmdet.utils import register_all_modules
label_desc: Use image node_id 1 to create a new ToyMetric1 object from inherited base classes: BaseMetric with example: obj = ToyMetric1(collect_device, dummy_metrics)