code: def test_double_target():
      @tvm.ir.register_op_attr("nn.relu", "target.double.A")
      def relu(expr):  # pylint: disable=unused-variable
          return True
  
      def before():
          x = relay.var("x", shape=(10, 5))
          a_1 = relay.nn.relu(x)
          mod = tvm.IRModule.from_expr(a_1)
          return mod
  
      for annotate_non_call_ops in [True, False]:
          mod = before()
          mod1 = transform.AnnotateTarget(
              "double.A", annotate_non_call_ops
          )(mod)
          mod2 = transform.AnnotateTarget(
              "double.A", annotate_non_call_ops
          )(mod1)
          assert tvm.ir.structural_equal(mod1, mod2)
  
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 9 for calling a global function with example usage: test_double_target() and returns: True, mod