code: def test_forward(self):
      pan_head = PANHead(
          in_channels=[10], hidden_dim=128, out_channel=6
      )
      data = torch.randn((2, 10, 40, 50))
      results = pan_head(data)
      self.assertEqual(results.shape, (2, 6, 40, 50))
  
imports: from unittest import TestCase
  import torch
  from mmocr.models.textdet.heads import PANHead
label_desc: Use image node_id 2 for calling the TestPANHead obj's underlying member method code with example usage: obj.test_forward() without return types