code: def test_diamond_multi_output():
      def input():
          return tvm.relay.fromtext(
              """
              #[version = "0.0.5"]
              def @main(%a: Tensor[(5, 3, 32, 32), float32], %b: Tensor[(2, 3, 5, 5), float32]) {
                %0 = nn.conv2d(%a, %b, padding=[0, 0, 0, 0]); // node 5
                %1 = nn.relu(%0);                             // node 6
                %2 = nn.relu(%1);                             // node 7
                %3 = nn.leaky_relu(%0, alpha=0f);             // node 9
                add(%2, %3)
              }
          """
          )
  
      def expected():
          return tvm.relay.fromtext(
              """
              #[version = "0.0.5"]
              def @main(%a: Tensor[(5, 3, 32, 32), float32], %b: Tensor[(2, 3, 5, 5), float32]) {
                %4 = (fn (%x: Tensor[(5, 3, 32, 32), float32], %y: Tensor[(2, 3, 5, 5), float32], Compiler="foo") {
                  %0 = nn.conv2d(%x, %y, padding=[0, 0, 0, 0]);
                  %1 = nn.relu(%0);
                  %2 = nn.relu(%1);
                  %3 = nn.leaky_relu(%0, alpha=0f);
                  (%2, %3)
                })(%a, %b);
                %5 = %4.0;
                %6 = %4.1;
                add(%5, %6)
              }
          """
          )
  
      run(input(), expected(), 2, False, "foo", {"": [5, 6, 7, 9]})
  
file_path: tvm/tests/python/relay/collage/test_sub_graph.py
imports: import tvm
  import logging
  import tvm.testing
label_desc: Use image node_id 7 for calling a global function with example usage: test_diamond_multi_output() and returns: tvm, tvm