code: def test_labels_direct_connection():
      def input():
          return tvm.relay.fromtext(
              """
              #[version = "0.0.5"]
              def @main(%a: Tensor[(5, 7), float32]) {
                %0 = nn.relu(%a);  // node 3
                %1 = nn.relu(%0);  // node 4
                %2 = nn.relu(%1);  // node 5
                %3 = nn.relu(%1);  // node 6
                %4 = add(%2, %3);  // node 7
                %5 = nn.relu(%4);  // node 8
                %6 = nn.relu(%4);  // node 9
                %7 = add(%5, %6);  // node 10
                nn.relu(%7)        // node 11
              }
          """
          )
  
      def expected():
          return tvm.relay.fromtext(
              """
              #[version = "0.0.5"]
              def @main(%a: Tensor[(5, 7), float32]) {
                (fn(%aa: Tensor[(5, 7), float32], Compiler="foo") {
                  %0 = nn.relu(%aa);
                  %4 = (fn(%y, Composite="a") {
                    %1 = nn.relu(%y);
                    %2 = nn.relu(%1);
                    %3 = nn.relu(%1);
                    add(%2, %3)
                  })(%0);
                  %7 = (fn(%z, Composite="b") {
                    %5 = nn.relu(%z);
                    %6 = nn.relu(%z);
                    add(%5, %6)
                  })(%4);
                  nn.relu(%7)
                })(%a)
              }
          """
          )
  
      run(
          input(),
          expected(),
          1,
          False,
          "foo",
          {"": [3, 11], "a": [4, 5, 6, 7], "b": [8, 9, 10]},
      )
  
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 10 for calling a global function with example usage: test_labels_direct_connection() and returns: tvm, tvm