code: def test_array_inputs():
      @script
      def sum_array(inputs):
          out = output_tensor((10,), inputs[0].dtype)
          n = len(inputs)
          for i in range(10):
              for j in const_range(n):
                  out[i] += inputs[j][i]
          return out
  
      n = 5
      inputs = []
      for i in range(n):
          inputs.append(
              te.placeholder((10,), name="t%s" % i, dtype="float32")
          )
  
      out = sum_array(tvm.runtime.convert(inputs))
      assert len(out.op.inputs) == n
  
      sch = te.create_schedule(out.op)
      mod = tvm.build(sch, inputs + [out], target="llvm")
      assert mod
  
      input_nd = []
      out_ref = numpy.zeros((10,))
      for _ in range(n):
          arr = numpy.random.uniform(size=(10,)).astype("float32")
          input_nd.append(tvm.nd.array(arr))
          out_ref += arr
      out_nd = tvm.nd.array(numpy.zeros((10,), "float32"))
      mod(*input_nd, out_nd)
      tvm.testing.assert_allclose(out_nd.numpy(), out_ref)
  
imports: import tvm, inspect, sys, traceback, numpy, pytest, types, os
  from tvm import te
  from tvm.contrib import utils
  from tvm.te.hybrid import script
  from tvm.te.hybrid.runtime import HYBRID_GLOBALS
  import tvm.testing
label_desc: Use image node_id 20 for calling a global function with example usage: test_array_inputs() and returns: out