code: def test_int8_pool_with_float32_input(
      pool_size,
      strides,
      padding,
      relu_type,
  ):
      """Tests QNN maxpool partitions with float32 input"""
      interface_api = "c"
      use_unpacked_api = True
      test_runner = AOT_USMP_CORSTONE300_RUNNER
  
      in_shape = (1, 28, 28, 12)
      zero_point, scale = (-34, 0.0256)
  
      input_ = relay.var("input", shape=in_shape, dtype="float32")
      op = relay.op.add(input_, input_)
      op = relay.qnn.op.quantize(
          op, relay.const(scale), relay.const(zero_point), -1, "int8"
      )
  
      model = make_model(
          pool_op=relay.nn.max_pool2d,
          shape=in_shape,
          pool_size=pool_size,
          strides=strides,
          padding=padding,
          scale=scale,
          zero_point=zero_point,
          relu_type=relu_type,
          input_op=op,
      )
      orig_mod = make_module(model)
  
      cmsisnn_mod = cmsisnn.partition_for_cmsisnn(orig_mod)
  
      # validate pattern matching
      assert_partitioned_function(orig_mod, cmsisnn_mod)
  
      # validate the output
      np.random.seed(0)
      inputs = {
          "input": np.random.uniform(0, 1, in_shape).astype("float32")
      }
      output_list = generate_ref_data(orig_mod["main"], inputs)
      compile_and_run(
          AOTTestModel(
              module=cmsisnn_mod,
              inputs=inputs,
              outputs=output_list,
              params=None,
              output_tolerance=1,
          ),
          test_runner,
          interface_api,
          use_unpacked_api,
      )
  
file_path: tvm/tests/python/contrib/test_cmsisnn/test_pooling.py
imports: import numpy
  import pytest
  import tvm
  from tvm import relay
  from tvm.relay.op.contrib import cmsisnn
  from tvm.testing.aot import get_dtype_range, generate_ref_data, AOTTestModel, compile_and_run
  from tvm.micro.testing.aot_test_utils import AOT_USMP_CORSTONE300_RUNNER
  from .utils import make_module, get_same_padding, make_qnn_relu, assert_partitioned_function, assert_no_external_function, create_test_runner
label_desc: Use image node_id 3 for calling a global function with example usage: test_int8_pool_with_float32_input(pool_size, strides, padding, relu_type) without return types