code: def test_max_pool2d(self):
      for name, inp in self.float_and_quant_and_nhwc(
          torch.randn(2, 3, 12, 16), 0.3, 128
      ):
          with self.subTest(name):
              self.check(torch.nn.MaxPool2d(2), inp)
              self.check(torch.nn.MaxPool2d((3, 4)), inp)
              self.check(torch.nn.MaxPool2d((3, 4), (1, 2)), inp)
  
imports: import os
  import ctypes
  import torch
  import unittest
  from typing import Tuple
  from torch.backends._nnapi.prepare import convert_model_to_nnapi
  from torch.testing._internal.common_quantized import supported_qengines
  from torch.testing._internal.common_utils import TestCase, run_tests
label_desc: Use image node_id 23 for calling the TestNNAPI obj's underlying member method code with example usage: obj.test_max_pool2d() without return types