code: def test_ref_global_from_expr():
      n = 3
      x = relay.Var("x", relay.TensorType([n], "float32"))
      y = relay.Var("y", relay.TensorType([n], "float32"))
      mod = tvm.IRModule()
      mod["add"] = relay.Function([x, y], relay.add(x, y))
      x_np = np.random.uniform(size=(n,)).astype("float32")
      y_np = np.random.uniform(size=(n,)).astype("float32")
      expected = np.add(x_np, y_np)
      expr = relay.Call(
          mod.get_global_var("add"),
          [relay.const(x_np), relay.const(y_np)],
      )
      check_eval(expr, None, expected, mod)
  
imports: import numpy
  import pytest
  import tvm
  from tvm import testing
  from tvm import nd
  from tvm import relay
  from tvm.runtime import container
  from tvm.relay.backend.interpreter import RefValue, ConstructorValue
  from tvm.relay.scope_builder import ScopeBuilder
label_desc: Use image node_id 17 for calling a global function with example usage: test_ref_global_from_expr() without return types