code: def test_codegen_pooling():
      dtype = "float32"
  
      trials = [
          [
              "nn.max_pool2d",
              (2, 2),
              (2, 2),
              (0, 0),
              False,
              True,
              (16, 16, 16),
          ],
          [
              "nn.max_pool2d",
              (3, 3),
              (2, 2),
              (1, 1),
              True,
              True,
              (15, 15, 16),
          ],
          [
              "nn.max_pool2d",
              (2, 2),
              (2, 2),
              (0, 1),
              False,
              False,
              (16, 16, 16),
          ],
          [
              "nn.avg_pool2d",
              (2, 2),
              (2, 2),
              (1, 1),
              False,
              False,
              (16, 16, 16),
          ],
          [
              "nn.avg_pool2d",
              (2, 2),
              (2, 2),
              (0, 0),
              False,
              True,
              (16, 16, 16),
          ],
          [
              "nn.avg_pool2d",
              (3, 3),
              (2, 2),
              (0, 1),
              True,
              False,
              (15, 15, 16),
          ],
      ]
  
      for (
          typef,
          size,
          stride,
          pad,
          ceil_mode,
          count_include_pad,
          input_shape,
      ) in trials:
          shape = (1, *input_shape)
          inputs = {"a"}
          args = (shape, dtype, typef, size, stride, pad, False, False)
          func = _get_pooling_model(*args, iter(inputs))
          exp_codegen = _get_expected_pooling_codegen(*args)
          verify_codegen(func, exp_codegen, 1)
  
file_path: tvm/tests/python/contrib/test_bnns/test_pooling.py
imports: import numpy
  import pytest
  import tvm
  from tvm import relay
  from tvm import testing
  from .infrastructure import skip_runtime_test, skip_codegen_test, build_and_run, verify, verify_codegen
  from .infrastructure import Device
label_desc: Use image node_id 8 for calling a global function with example usage: test_codegen_pooling() without return types