code: def setUp(self) -> None:
      register_all_modules()
      model_cfg = get_detector_cfg(
          "cornernet/cornernet_hourglass104_8xb6-210e-mstest_coco.py"
      )
  
      backbone = dict(
          type="ResNet",
          depth=18,
          num_stages=4,
          out_indices=(3,),
          norm_cfg=dict(type="BN", requires_grad=True),
          norm_eval=True,
          style="pytorch",
      )
  
      neck = dict(
          type="FPN",
          in_channels=[512],
          out_channels=256,
          start_level=0,
          add_extra_convs="on_input",
          num_outs=1,
      )
  
      model_cfg.backbone = ConfigDict(**backbone)
      model_cfg.neck = ConfigDict(**neck)
      model_cfg.bbox_head.num_feat_levels = 1
      self.model_cfg = model_cfg
  
file_path: mmdetection/tests/test_models/test_detectors/test_cornernet.py
imports: import unittest
  from unittest import TestCase
  import torch
  from mmengine.config import ConfigDict
  from mmdet.structures import DetDataSample
  from mmdet.testing import demo_mm_inputs, get_detector_cfg
  from mmdet.utils import register_all_modules
label_desc: Use image node_id 1 for calling the TestCornerNet obj's underlying member method code with example usage: obj.setUp() without return types