code: def test_mod():
      x = relay.var("x", "float32")
      y = relay.var("y", "float32")
      z = relay.add(x, y)
      z = relay.add(z, z)
      f = relay.Function([x, y], z)
      mod = tvm.IRModule()
      mod["myf"] = f
      mod = relay.transform.InferType()(mod)
      text = astext(mod)
      assert "def @myf" in text
      assert "def @myf" in str(mod)
      assert "add(%0, %0) /* ty=float32 */" in text
      assert "add(%0, %0) /* ty=float32 */" in str(mod)
      show(
          mod.astext(
              annotate=lambda x: str(x.checked_type.dtype)
              if type(x) == relay.Call
              else ""
          )
      )
      show(text)
  
imports: import tvm
  import tvm.testing
  from tvm import te
  from tvm import relay
  from tvm.relay import testing
  import numpy
  from tvm.relay import Expr
  from tvm.relay.analysis import free_vars
  import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_mod() without return types