code: def _get_model(shape, typef, sizes, strides, pads, layout, dtype):
      """Return a model and any parameters it may have"""
      req = relay.var("a", shape=shape, dtype=dtype)
      if typef is relay.nn.avg_pool2d:
          req = relay.cast(req, "int32")
      req = typef(
          req,
          pool_size=sizes,
          strides=strides,
          padding=pads,
          ceil_mode=True,
          layout=layout,
      )
      if typef is relay.nn.avg_pool2d:
          req = relay.cast(req, dtype)
      return req
  
file_path: tvm/tests/python/contrib/test_ethosn/test_pooling.py
imports: import numpy
  import pytest
  import tvm
  from tvm import relay
  from tvm.testing import requires_ethosn
  from .None import infrastructure
label_desc: Use image node_id 1 for calling a global function with example usage: _get_model(shape, typef, sizes, strides, pads, layout, dtype) and returns: req