code: def test_dense_type_check():
      dtype = "float16"
      n, c, h, w = 2, 2, 2, 2
      x = relay.var("x", relay.TensorType((n, c, h, w), dtype))
      # it should fail since it does not match with m(2)
      mismatch_w = 3
      w = relay.var("w", relay.TensorType((2, mismatch_w), dtype))
      y = relay.nn.dense(x, w)
      yy = run_infer_type(y)
  
imports: import numpy
  import pytest
  import tvm
  from tvm import te
  import scipy
  from tvm import relay
  import pytest
  from tvm.relay.testing import run_infer_type
  import tvm.topi.testing
  from tvm.contrib.nvcc import have_fp16
  import tvm.testing
  from tvm.topi.utils import get_const_tuple
label_desc: Use image node_id 22 for calling a global function with example usage: test_dense_type_check() without return types