code: def test_cmp_type():
      for op, ref in (
          (relay.greater, np.greater),
          (relay.less, np.less),
          (relay.equal, np.equal),
      ):
          x_shape = (10, 4)
          y_shape = (5, 10, 1)
          t1 = relay.TensorType(x_shape)
          t2 = relay.TensorType(y_shape)
          x = relay.var("x", t1)
          y = relay.var("y", t2)
          z = op(x, y)
          x_data = np.random.rand(*x_shape).astype(t1.dtype)
          y_data = np.random.rand(*y_shape).astype(t2.dtype)
          func = relay.Function([x, y], z)
          verify_results(
              func,
              [x_data, y_data],
              "test_cmp_type",
              rtol=1e-5,
              atol=1e-5,
          )
  
imports: import pytest
  import numpy
  import onnxruntime
  import tvm
  from tvm import relay
  from tvm.contrib.target.onnx import to_onnx
  from tvm.relay.testing import run_infer_type
label_desc: Use image node_id 22 for calling a global function with example usage: test_cmp_type() without return types