code: def test_binary_intrin():
      test_funcs = [
          (tvm.tir.atan2, lambda x1, x2: np.arctan2(x1, x2)),
          (tvm.tir.nextafter, lambda x1, x2: np.nextafter(x1, x2)),
          (tvm.tir.copysign, lambda x1, x2: np.copysign(x1, x2)),
          (tvm.tir.hypot, lambda x1, x2: np.hypot(x1, x2)),
      ]
  
      def run_test(tvm_intrin, np_func):
          m = te.var(
              "m",
          )
          A = te.placeholder((m,), name="A")
          B = te.placeholder((m,), name="B")
          C = te.compute(
              (m,), lambda *i: tvm_intrin(A(*i), B(*i)), name="C"
          )
          s = te.create_schedule(C.op)
          f = tvm.build(s, [A, B, C], "llvm")
          dev = tvm.cpu(0)
          n = 10
          a = tvm.nd.array(
              np.random.uniform(0, 1, size=n).astype(A.dtype), dev
          )
          b = tvm.nd.array(
              np.random.uniform(0, 1, size=n).astype(B.dtype), dev
          )
          c = tvm.nd.array(
              np.random.uniform(size=n).astype(A.dtype), dev
          )
          f(a, b, c)
          tvm.testing.assert_allclose(
              c.numpy(),
              np_func(a.numpy(), b.numpy()),
              atol=1e-5,
              rtol=1e-5,
          )
  
      for func in test_funcs:
          run_test(*func)
  
file_path: tvm/tests/python/tir-base/test_tir_intrin.py
imports: import tvm
  import tvm.testing
  from tvm import te, tir
  from tvm import topi
  from tvm.contrib import utils, clang
  from tvm.script import tir
  import numpy
  import ctypes
  import math
label_desc: Use image node_id 4 for calling a global function with example usage: test_binary_intrin() without return types