code: def test_avgpool_1d(data_shape_ncw, pool_size, strides, padding):
      """Test a subgraph with a single avgpool_1d operator."""
  
      ishape = data_shape_ncw
  
      input0 = relay.var("input", relay.TensorType(ishape, "int32"))
      out0 = relay.op.nn.avg_pool1d(
          input0,
          pool_size,
          layout="NCW",
          strides=strides,
          padding=padding,
      )
      ref_mod = tvm.IRModule.from_expr(relay.Function([input0], out0))
  
      input1 = relay.var("input", relay.TensorType(ishape, "int16"))
      out1 = relay.op.nn.avg_pool1d(
          input1,
          pool_size,
          layout="NCW",
          strides=strides,
          padding=padding,
      )
      mod = tvm.IRModule.from_expr(relay.Function([input1], out1))
  
      input_data = np.random.randint(
          low=-10, high=10, size=ishape, dtype="int32"
      )
      inputs = {"input": input_data}
      output_list = generate_ref_data(ref_mod, inputs)
  
      compile_and_run(
          AOTTestModel(
              module=mod,
              inputs={"input": input_data.astype(dtype="int16")},
              outputs=output_list,
          ),
          runner=AOT_CORSTONE300_RUNNER,
          interface_api="c",
          use_unpacked_api=True,
          target_opts={
              "-keys": "arm_cpu",
              "-mcpu": "cortex-m7",
          },
      )
  
file_path: tvm/tests/python/integration/test_arm_mprofile_dsp.py
imports: import numpy
  import pytest
  import tvm
  import tvm.testing
  from tvm import relay
  from tvm.testing.aot import AOTTestModel, compile_and_run, generate_ref_data
  from tvm.micro.testing.aot_test_utils import AOT_CORSTONE300_RUNNER
label_desc: Use image node_id 7 for calling a global function with example usage: test_avgpool_1d(data_shape_ncw, pool_size, strides, padding) without return types