code: def test_init(self):
      model_cfg = self._create_model_cfg(
          "mask2former/mask2former_r50_8xb2-lsj-50e_coco-panoptic.py"
      )
      detector = MODELS.build(model_cfg)
      detector.init_weights()
      assert detector.backbone
      assert detector.panoptic_head
  
imports: import unittest
  import torch
  from parameterized import parameterized
  from mmdet.registry import MODELS
  from mmdet.structures import DetDataSample
  from mmdet.testing._utils import demo_mm_inputs, get_detector_cfg
  from mmdet.utils import register_all_modules
label_desc: Use image node_id 3 for calling the TestMask2Former obj's underlying member method code with example usage: obj.test_init() without return types