code: def test_entry_with_inline():
      """Test entry function with inline
  
      The call graph is like the following:
                  g1(inline)    g2(inline)
      """
  
      def get_mod():
          mod = tvm.IRModule({})
          x1 = relay.var("x1", shape=(3, 5))
          y1 = relay.var("y1", shape=(3, 5))
          fn1 = relay.Function([x1, y1], x1 + y1)
          fn1 = fn1.with_attr("Inline", tvm.tir.IntImm("int32", 1))
          g1 = relay.GlobalVar("g1")
          mod[g1] = fn1
  
          x2 = relay.var("x2", shape=(3, 5))
          y2 = relay.var("y2", shape=(3, 5))
          fn2 = relay.Function([x2, y2], x2 - y2)
          fn2 = fn2.with_attr("Inline", tvm.tir.IntImm("int32", 1))
          g2 = relay.GlobalVar("g2")
          mod[g2] = fn2
  
          return mod
  
      mod = get_mod()
      mod = relay.transform.Inline()(mod)
      assert tvm.ir.structural_equal(mod, get_mod(), map_free_vars=True)
  
file_path: tvm/tests/python/relay/test_pass_inline.py
imports: import tvm
  from tvm import relay
label_desc: Use image node_id 14 for calling a global function with example usage: test_entry_with_inline() and returns: mod