code: def type_inference(self):
      if self.x.rank < 3:
          raise ValueError(
              'input to the "resize_bilinear" op must have rank at least 3'
          )
  
      if self.sampling_mode.val not in {
          "STRICT_ALIGN_CORNERS",
          "ALIGN_CORNERS",
          "DEFAULT",
          "OFFSET_CORNERS",
      }:
          raise ValueError(
              '"resize_bilinear" op: unrecognized sampling mode "{}"'.format(
                  self.sampling_mode.val
              )
          )
  
      ret_shape = list(self.x.shape)
      ret_shape[-1] = self.target_size_width.val
      ret_shape[-2] = self.target_size_height.val
      return types.tensor(self.x.dtype, ret_shape)
  
imports: from ._op_reqs import *
label_desc: Use image node_id 2 for calling the resize_bilinear obj's underlying member method code with example usage: obj.type_inference() and returns: types