code: def test_matmul():
      """Tests matmul operation using roc"""
      n = 1024
      l = 128
      m = 235
      A = te.placeholder((n, l), name="A")
      B = te.placeholder((l, m), name="B")
      C = rocblas.matmul(A, B)
      s = te.create_schedule(C.op)
  
      def verify(target="rocm"):
          if not tvm.get_global_func(
              "tvm.contrib.rocblas.matmul", True
          ):
              print("skip because extern function is not available")
              return
          dev = tvm.rocm(0)
          f = tvm.build(s, [A, B, C], target)
          a = tvm.nd.array(
              np.random.uniform(size=(n, l)).astype(A.dtype), dev
          )
          b = tvm.nd.array(
              np.random.uniform(size=(l, m)).astype(B.dtype), dev
          )
          c = tvm.nd.array(np.zeros((n, m), dtype=C.dtype), dev)
          f(a, b, c)
          tvm.testing.assert_allclose(
              c.numpy(), np.dot(a.numpy(), b.numpy()), rtol=1e-5
          )
  
      verify()
  
file_path: tvm/tests/python/contrib/test_rocblas.py
imports: import numpy
  import tvm
  import tvm.testing
  from tvm import te
  import tvm.topi.testing
  from tvm.contrib import rocblas
label_desc: Use image node_id 1 for calling a global function with example usage: test_matmul() without return types