code: def test_op_attr():
      log_op = relay.op.get("log")
  
      @tvm.ir.register_op_attr("exp", "ftest")
      def test(x):
          return x + 1
  
      assert log_op.num_inputs == 1
      assert log_op.get_attr("ftest") is None
      assert relay.op.get("exp").get_attr("ftest")(1) == 2
  
file_path: tvm/tests/python/relay/test_ir_op.py
imports: import tvm
  from tvm import relay
  from tvm.relay.testing.temp_op_attr import TempOpAttr
  from tvm.relay.op import op
label_desc: Use image node_id 1 for calling a global function with example usage: test_op_attr() and returns: unknown