code: def test_dynamic_to_static_upsampling3d():
      def verify_upsampling3d(
          data_shape, scale_d_val, scale_h_val, scale_w_val, dtype
      ):
          x = relay.var("x", relay.TensorType(data_shape, dtype))
          scale_d = relay.var(
              "scale_d", relay.TensorType((), "float32")
          )
          scale_h = relay.var(
              "scale_h", relay.TensorType((), "float32")
          )
          scale_w = relay.var(
              "scale_w", relay.TensorType((), "float32")
          )
  
          z = relay.nn.upsampling3d(x, scale_d, scale_h, scale_w)
          params = {
              "scale_d": scale_d_val,
              "scale_h": scale_h_val,
              "scale_w": scale_w_val,
          }
  
          func = run_infer_type(
              relay.Function([x, scale_d, scale_h, scale_w], z)
          )
          func2 = run_opt_pass(
              run_opt_pass(func, transform.DynamicToStatic(), params),
              transform.InferType(),
          )
  
          zz = func2.body
          assert isinstance(zz, relay.Call)
          assert zz.op == relay.op.get("nn.upsampling3d")
  
          x_data = np.random.uniform(size=data_shape).astype(dtype)
          ref_res = tvm.topi.testing.resize3d_python(
              x_data,
              (scale_d_val, scale_h_val, scale_w_val),
              "NCDHW",
              "nearest_neighbor",
              "asymmetric",
          )
          verify_func(func2, [x_data], ref_res)
  
      verify_upsampling3d((1, 1, 1, 1, 1), 2, 3, 4, "int8")
      verify_upsampling3d((5, 7, 8, 10, 32), 3, 2, 2, "int8")
      verify_upsampling3d((1, 4, 2, 5, 3), 5, 4, 3, "int32")
  
imports: import numpy
  import pytest
  import tvm
  from tvm import te
  from tvm import relay
  from tvm.relay import transform
  from tvm.relay.build_module import bind_params_by_name
  from tvm.relay.testing import run_infer_type, create_workload
  import tvm.topi.testing
  import tvm.testing
label_desc: Use image node_id 15 for calling a global function with example usage: test_dynamic_to_static_upsampling3d() without return types