code: def test_print_element():
      mod = tvm.IRModule({})
      x0 = relay.var("x0", shape=(2, 3))
      y0 = relay.var("y0", shape=(2, 3))
      mod["g0"] = relay.Function([x0, y0], x0 + y0)
      x1 = relay.var("x1", shape=(2, 3))
      y1 = relay.var("y1", shape=(2, 3))
      mod["g1"] = relay.Function([x1, y1], x1 - y1)
      call_graph = relay.analysis.CallGraph(mod)
  
      assert "#refs = 0" in str(call_graph.print_var("g0"))
      assert "#refs = 0" in str(call_graph.print_var("g1"))
  
file_path: tvm/tests/python/relay/test_call_graph.py
imports: import pytest
  import tvm
  from tvm import relay
label_desc: Use image node_id 2 for calling a global function with example usage: test_print_element() without return types