code: def test_multiple_runs():
      @tvm.ir.register_op_attr("nn.relu", "target.A")
      def relu(expr):  # pylint: disable=unused-variable
          return True
  
      @tvm.ir.register_op_attr("add", "target.B")
      def add(expr):  # pylint: disable=unused-variable
          return True
  
      def before():
          x = relay.var("x", shape=(10, 5))
          a_1 = relay.nn.relu(x)
          a_2 = relay.abs(a_1)
          a_3 = relay.nn.relu(a_1)
          out = relay.add(a_2, a_3)
  
          f = relay.Function([x], out)
          mod = tvm.IRModule.from_expr(f)
          return mod
  
      for annotate_non_call_ops in [True, False]:
          mod = transform.AnnotateTarget("A", annotate_non_call_ops)(
              before()
          )
          mod = transform.AnnotateTarget("B", annotate_non_call_ops)(
              mod
          )
          expected = transform.AnnotateTarget(
              ["A", "B"], annotate_non_call_ops
          )(before())
          assert tvm.ir.structural_equal(expected, mod)
  
imports: import os
  import sys
  import numpy
  import pytest
  import tvm
  import tvm.relay.testing
  import tvm.relay.transform
  from tvm import relay
  from tvm import runtime
  from tvm.contrib import utils
label_desc: Use image node_id 11 for calling a global function with example usage: test_multiple_runs() and returns: True, True, mod