code: def test_runtime_add():
      Device.load("test_config.json")
  
      if skip_runtime_test():
          return
  
      device = Device()
      np.random.seed(0)
  
      for dtype, low, high, atol, rtol, op, op_params in [
          ("float32", -127, 128, 1e-7, 1e-7, relay.add, {}),
          ("uint8", 0, 255, 1.0, 0.0, relay.qnn.op.add, _qnn_params),
          ("int8", -127, 128, 1.0, 0.0, relay.qnn.op.add, _qnn_params),
      ]:
          shape = (2, 2)
          for inputs in [
              {
                  "a": tvm.nd.array(
                      np.random.uniform(low, high, shape).astype(dtype)
                  ),
                  "b": tvm.nd.array(
                      np.random.uniform(low, high, shape).astype(dtype)
                  ),
              }
          ]:
              outputs = []
              func = _get_model(
                  shape, dtype, iter(inputs), op, op_params
              )
              for acl in [True, False]:
                  outputs.append(
                      build_and_run(
                          func, inputs, 1, None, device, enable_acl=acl
                      )[0]
                  )
  
              config = {
                  "shape": shape,
                  "dtype": dtype,
                  "inputs": inputs,
                  "operation": op,
                  "op_params": op_params,
              }
  
              verify(
                  outputs,
                  atol=atol,
                  rtol=rtol,
                  config=config,
                  verify_saturation=False,
              )
  
file_path: tvm/tests/python/contrib/test_arm_compute_lib/test_add.py
imports: import numpy
  import pytest
  import tvm
  import tvm.testing
  from tvm import relay
  from test_arm_compute_lib.infrastructure import skip_runtime_test, skip_codegen_test, build_and_run, verify, verify_codegen
  from test_arm_compute_lib.infrastructure import Device
label_desc: Use image node_id 3 for calling a global function with example usage: test_runtime_add() without return types