code: def test_dynamic_to_static_dynamic_if():
      x = relay.var("x", relay.TensorType((2, 2), "int64"))
      cond = relay.const(1)
      iff = relay.If(
          cond, relay.reshape(x, [1, 4]), relay.reshape(x, (4, 1))
      )
  
      func = relay.Function([x], iff)
      func2 = run_opt_pass(
          run_opt_pass(func, transform.DynamicToStatic()),
          transform.InferType(),
      )
  
      zz = func2.body
      assert isinstance(zz, relay.Call)
      assert zz.op == relay.op.get("reshape")
      x_data = np.random.uniform(low=-1, high=1, size=(2, 2)).astype(
          "int64"
      )
      verify_func(func2, [x_data], x_data.reshape(1, 4))
  
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 20 for calling a global function with example usage: test_dynamic_to_static_dynamic_if() without return types