code: def test_resize3d_infer_type():
      n, c, d, h, w = (
          te.size_var("n"),
          te.size_var("c"),
          te.size_var("d"),
          te.size_var("h"),
          te.size_var("w"),
      )
      x = relay.var("x", relay.TensorType((n, c, d, h, w), "int8"))
      td, th, tw = te.var("td"), te.var("th"), te.var("tw")
      z = relay.image.resize3d(x, (td, th, tw))
      zz = run_infer_type(z)
      assert zz.checked_type == relay.TensorType(
          (n, c, td, th, tw), "int8"
      )
  
      x = relay.var("x", relay.TensorType((n, c, d, h, w), "int8"))
      z = relay.image.resize3d(
          x, (10, 10, 20), None, "NCDHW", "linear", "align_corners"
      )
      assert "size=" in z.astext()
      zz = run_infer_type(z)
      assert zz.checked_type == relay.TensorType(
          (n, c, 10, 10, 20), "int8"
      )
  
imports: import math
  import platform
  import sys
  import numpy
  import pytest
  import tvm
  import tvm.testing
  import tvm.topi.testing
  from tvm import relay, te
  from tvm.relay.testing import run_infer_type
label_desc: Use image node_id 3 for calling a global function with example usage: test_resize3d_infer_type() without return types