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