code: def test_avgpool2d(self):
      avgpool2d = AvgPool2d(kernel_size=2, stride=2)
      self.assertEqual(
          avgpool2d(self.img).shape, torch.Size([1, 3, 16, 50])
      )
  
imports: from unittest import TestCase
  import torch
  from mmocr.models.common.plugins import AvgPool2d
label_desc: Use image node_id 2 for calling the TestAvgPool2d obj's underlying member method code with example usage: obj.test_avgpool2d() without return types