def METHOD_NAME(workspace_dir, board, microtvm_debug, use_fvp, serial_number):
    """Testing a simple relay graph"""
    build_config = {"debug": microtvm_debug}
    shape = (10,)
    dtype = "int8"
    # Construct Relay program.
    x = relay.var("x", relay.TensorType(shape=shape, dtype=dtype))
    xx = relay.multiply(x, x)
    z = relay.add(xx, relay.const(np.ones(shape=shape, dtype=dtype)))
    func = relay.Function([x], z)
    ir_mod = tvm.IRModule.from_expr(func)
    runtime = Runtime("crt", {"system-lib": True})
    executor = Executor("aot")
    target = tvm.micro.testing.get_target("zephyr", board)
    with tvm.transform.PassContext(opt_level=3, config={"tir.disable_vectorize": True}):
        mod = tvm.relay.build(ir_mod, target=target, runtime=runtime, executor=executor)
    with _make_session(workspace_dir, board, mod, build_config, use_fvp, serial_number) as session:
        aot_executor = tvm.runtime.executor.aot_executor.AotModule(session.create_aot_executor())
        x_in = np.random.randint(10, size=shape[0], dtype=dtype)
        aot_executor.run(x=x_in)
        result = aot_executor.get_output(0).numpy()
        tvm.testing.assert_allclose(aot_executor.get_input(0).numpy(), x_in)
        tvm.testing.assert_allclose(result, x_in * x_in + 1)