code: def test_constant():
      M = 11
      A = te.placeholder((M,), name="A")
      B = te.compute(tuple(), lambda: 2, name="B")
      # Manually craft ProducerLoad because `B[]` is not allowed.
      C = te.compute(
          (M,),
          lambda x: A[x] + tvm.tir.expr.ProducerLoad(B, []),
          name="C",
          tag="broadcast",
      )
  
      func = te.create_prim_func([C, A])
      func = tvm.build(func)
      a_np = np.random.uniform(size=(M,)).astype(A.dtype)
      c = tvm.nd.array(np.zeros(M, dtype=C.dtype))
      x = func(c, tvm.nd.array(a_np))
      tvm.testing.assert_allclose(a_np + 2, c.numpy())
  
imports: import numpy
  import tvm
  import tvm.testing
  from tvm import te, tir, topi, relay
  from tvm.script import tir
  import pytest
label_desc: Use image node_id 26 for calling a global function with example usage: test_constant() without return types