code: def test_sigmoid(dtype, shape):
      """Compare Sigmoid output with TVM."""
      np.random.seed(0)
  
      inputs = {
          "a": tvm.nd.array(
              np.random.randint(
                  np.iinfo(dtype).min,
                  np.iinfo(dtype).max + 1,
                  size=shape,
                  dtype=dtype,
              )
          ),
      }
      outputs = []
      for npu in [False, True]:
          for _ in range(1, 2):
              if dtype == "uint8":
                  input_zp = 0
                  output_zp = 0
              else:
                  input_zp = 127
                  output_zp = -128
              model = _get_model(
                  shape, input_zp, 0.02, output_zp, 1.0 / 256.0, dtype
              )
              mod = tei.make_module(model, [])
              outputs.append(
                  tei.build_and_run(mod, inputs, 1, {}, npu=npu)
              )
  
      tei.verify(outputs, dtype, 1)
  
file_path: tvm/tests/python/contrib/test_ethosn/test_sigmoid.py
imports: import pytest
  import numpy
  import tvm
  from tvm import relay
  from tvm.testing import requires_ethosn
  from .None import infrastructure
label_desc: Use image node_id 2 for calling a global function with example usage: test_sigmoid(dtype, shape) without return types