code: def test_opencl_erf():
      def check_erf(dev, n, dtype):
          A = te.placeholder((n,), name="A", dtype=dtype)
          C = te.compute(A.shape, lambda *i: te.erf(A(*i)), name="C")
          s = te.create_schedule(C.op)
          s[C].bind(s[C].op.axis[0], te.thread_axis("threadIdx.x"))
          fun = tvm.build(s, [A, C], target)
          source_str = fun.imported_modules[0].get_source()
          matches = re.findall("erf", source_str)
          error_matches = re.findall("erff", source_str)
          assert len(matches) == 1 and len(error_matches) == 0
  
      dev = tvm.device(target, 0)
  
      check_erf(dev, 1, "float32")
      check_erf(dev, 1, "float64")
  
file_path: tvm/tests/python/codegen/test_target_codegen_opencl.py
imports: import tvm
  from tvm import te, relay
  import tvm.testing
  import re
  import pytest
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_opencl_erf() without return types