code: def resize2d_shape_func(attrs, inputs, _):
      """
      Shape function for dyn.image.resize op.
      """
      layout = attrs.layout
      if nchw_pack_layout(layout) or nchw_xc_layout(layout):
          out = [
              _resize2d_shape_func(
                  inputs[0].shape,
                  inputs[1],
                  convert(len(inputs[0].shape)),
                  convert(2),
                  convert(3),
              )
          ]
      else:
          height_axis = width_axis = 1
          for i, letter in enumerate(layout):
              if letter == "H":
                  height_axis = i
              if letter == "W":
                  width_axis = i
          out = [
              _resize2d_shape_func(
                  inputs[0].shape,
                  inputs[1],
                  convert(len(inputs[0].shape)),
                  convert(height_axis),
                  convert(width_axis),
              )
          ]
      return out
  
file_path: tvm/python/tvm/relay/op/dyn/image/_image.py
imports: from __future__ import absolute_import
  import tvm.topi
  from tvm.runtime import convert
  from tvm.te.hybrid import script
  from tvm.topi.utils import nchw_pack_layout, nchw_xc_layout
  from ...None import op
label_desc: Use image node_id 3 for calling a global function with example usage: resize2d_shape_func(attrs, inputs, _) and returns: out