code: def test_create_executor():
      x = tvm.relay.var("x", tvm.relay.TensorType([1], dtype="float32"))
      expr = tvm.relay.add(
          x,
          tvm.relay.Constant(
              tvm.nd.array(np.array([1], dtype="float32"))
          ),
      )
      actual = relay.create_executor(
          "aot",
          mod=tvm.IRModule.from_expr(tvm.relay.Function([x], expr)),
          target="c",
      ).evaluate()(np.array([2], dtype="float32"))
  
      np.isfinite(np.array([3], dtype="float32"))
  
      np.testing.assert_allclose(
          actual.numpy(), np.array([3], dtype="float32")
      )
  
file_path: tvm/tests/python/relay/aot/test_cpp_aot.py
imports: import re
  import textwrap
  import numpy
  import pytest
  import tvm
  from tvm import IRModule
  from tvm import relay
  from tvm.relay import backend, testing
  from tvm.testing.aot import generate_ref_data
label_desc: Use image node_id 5 for calling a global function with example usage: test_create_executor() without return types