code: def crop_and_resize_func(attrs, inputs, _):
      """
      Shape function for crop_and_resize op.
      """
      layout = attrs.layout
      height_axis = width_axis = channel_axis = 1
      for i, letter in enumerate(layout):
          if letter == "H":
              height_axis = i
          if letter == "W":
              width_axis = i
          if letter == "C":
              channel_axis = i
      crop_size = get_const_tuple(attrs.crop_size)
      return [
          _crop_and_resize_func(
              inputs[0],
              inputs[1],
              convert(crop_size),
              convert(height_axis),
              convert(width_axis),
              convert(channel_axis),
          )
      ]
  
imports: from __future__ import absolute_import
  from tvm.te.hybrid import script
  from tvm.runtime import convert
  from tvm import topi
  from tvm.topi.utils import get_const_tuple
  from ..None import op
  from ..None import strategy
  from ..op import OpPattern
  from .image import resize2d
label_desc: Use image node_id 12 for calling a global function with example usage: crop_and_resize_func(attrs, inputs, _) and returns: list