code: def test_cornernet_forward_tensor_mode(self):
      from mmdet.registry import MODELS
  
      detector = MODELS.build(self.model_cfg)
      detector.init_weights()
  
      packed_inputs = demo_mm_inputs(2, [[3, 512, 512], [3, 512, 512]])
      data = detector.data_preprocessor(packed_inputs, False)
      batch_results = detector.forward(**data, mode="tensor")
      assert isinstance(batch_results, tuple)
  
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 5 for calling the TestCornerNet obj's underlying member method code with example usage: obj.test_cornernet_forward_tensor_mode() without return types