code: def _get_model(
      shape,
      weight_shape,
      input_zp,
      input_sc,
      kernel_zp,
      kernel_sc,
      output_zp,
      output_sc,
      dtype,
  ):
      """Return a model an any parameters it may have"""
      a = relay.var("a", shape=shape, dtype=dtype)
      weights_array = tvm.nd.array(
          np.random.randint(
              np.iinfo(dtype).min,
              high=np.iinfo(dtype).max,
              size=weight_shape,
              dtype=dtype,
          )
      )
      weights = relay.const(weights_array, dtype)
      dense = relay.qnn.op.dense(
          a,
          weights,
          input_zero_point=relay.const(input_zp, "int32"),
          kernel_zero_point=relay.const(kernel_zp, "int32"),
          input_scale=relay.const(input_sc, "float32"),
          kernel_scale=relay.const(kernel_sc, "float32"),
          units=weight_shape[0],
          out_dtype="int32",
      )
      b = tvm.nd.array(
          np.random.randint(
              0, high=255, size=(weight_shape[0],), dtype="int32"
          )
      )
      biasc = relay.const(b, "int32")
      bias = relay.nn.bias_add(dense, biasc)
      req = relay.qnn.op.requantize(
          bias,
          relay.const(
              input_sc * kernel_sc, "float32"
          ),  # input zero scale
          relay.const(
              input_zp * kernel_zp, "int32"
          ),  # input zero point
          relay.const(output_sc, "float32"),  # output zero scale
          relay.const(output_zp, "int32"),  # output zero point
          out_dtype=dtype,
      )
      params = {"w": weights_array, "b": b}
      return req, params
  
file_path: tvm/tests/python/contrib/test_ethosn/test_fullyconnected.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, weight_shape, input_zp, input_sc, kernel_zp, kernel_sc, output_zp, output_sc, dtype) and returns: req,  params