code: def setUp(self):
      self.tmp_dir = tempfile.TemporaryDirectory()
      self.gt_json_path = osp.join(self.tmp_dir.name, "gt.json")
      self.gt_seg_dir = osp.join(self.tmp_dir.name, "gt_seg")
      os.mkdir(self.gt_seg_dir)
      self._create_panoptic_gt_annotations(
          self.gt_json_path, self.gt_seg_dir
      )
      self.dataset_meta = {
          "classes": ("person", "dog", "wall"),
          "thing_classes": ("person", "dog"),
          "stuff_classes": ("wall",),
      }
      self.target = {
          "coco_panoptic/PQ": 67.86874803219071,
          "coco_panoptic/SQ": 80.89770126158936,
          "coco_panoptic/RQ": 83.33333333333334,
          "coco_panoptic/PQ_th": 60.45252075318891,
          "coco_panoptic/SQ_th": 79.9959505972869,
          "coco_panoptic/RQ_th": 75.0,
          "coco_panoptic/PQ_st": 82.70120259019427,
          "coco_panoptic/SQ_st": 82.70120259019427,
          "coco_panoptic/RQ_st": 100.0,
      }
      self.data_samples = self._create_panoptic_data_samples()
  
file_path: mmdetection/tests/test_evaluation/test_metrics/test_coco_panoptic_metric.py
imports: import os
  import os.path
  import tempfile
  import unittest
  from copy import deepcopy
  import mmcv
  import numpy
  import torch
  from mmengine.fileio import dump
  from mmdet.evaluation import INSTANCE_OFFSET, CocoPanopticMetric
label_desc: Use image node_id 3 for calling the TestCocoPanopticMetric obj's underlying member method code with example usage: obj.setUp() without return types