code: def test_cmp():
      # explicit specify the output type
      def greater(x, y):
          return topi.greater(x, y).astype("int8")
  
      def less(x, y):
          return topi.less(x, y).astype("int8")
  
      def equal(x, y):
          return topi.equal(x, y).astype("int8")
  
      def not_equal(x, y):
          return topi.not_equal(x, y).astype("int8")
  
      def greater_equal(x, y):
          return topi.greater_equal(x, y).astype("int8")
  
      def less_equal(x, y):
          return topi.less_equal(x, y).astype("int8")
  
      verify_broadcast_binary_ele((1, 2, 2), (2,), greater, np.greater)
      verify_broadcast_binary_ele((2, 1, 2), (2, 3, 1), less, np.less)
      verify_broadcast_binary_ele(
          (2, 1, 2),
          (2, 3, 1),
          equal,
          np.equal,
          lhs_min=-2,
          lhs_max=2,
          rhs_min=-2,
          rhs_max=2,
          dtype="int32",
      )
      verify_broadcast_binary_ele(
          (2, 1, 2),
          (2, 3, 1),
          not_equal,
          np.not_equal,
          lhs_min=-2,
          lhs_max=2,
          rhs_min=-2,
          rhs_max=2,
          dtype="int32",
      )
      verify_broadcast_binary_ele(
          (7, 1, 5),
          (7, 3, 1),
          greater_equal,
          np.greater_equal,
          lhs_min=-3,
          lhs_max=3,
          rhs_min=-3,
          rhs_max=3,
          dtype="int32",
      )
      verify_broadcast_binary_ele(
          (7, 1, 5),
          (7, 3, 1),
          less_equal,
          np.less_equal,
          lhs_min=-3,
          lhs_max=3,
          rhs_min=-3,
          rhs_max=3,
          dtype="int32",
      )
  
imports: import numpy
  import tvm
  from tvm import te
  from tvm import topi
  import tvm.testing
  import tvm.topi.testing
label_desc: Use image node_id 13 for calling a global function with example usage: test_cmp() and returns: topi, topi, topi, topi, topi, topi