code: def test_extern_call():
      n = 10
      A = te.placeholder((n,), name="A")
      B = te.compute(
          (n,),
          lambda *i: tvm.tir.call_extern(
              "float32", "TVMTestAddOne", A(*i)
          ),
          name="B",
      )
      s = te.create_schedule(B.op)
  
      def check_llvm():
          if not tvm.testing.device_enabled("llvm"):
              return
          f = tvm.build(s, [A, B], "llvm")
          dev = tvm.cpu(0)
          # launch the kernel.
          a = tvm.nd.array(
              np.random.uniform(size=n).astype(A.dtype), dev
          )
          b = tvm.nd.array(np.zeros(n, dtype=B.dtype), dev)
          f(a, b)
          tvm.testing.assert_allclose(b.numpy(), a.numpy() + 1)
  
      check_llvm()
  
file_path: tvm/apps/extension/tests/test_ext.py
imports: import tvm_ext
  import tvm
  import tvm._ffi.registry
  import tvm.testing
  from tvm import te
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: test_extern_call() without return types