code: def resize_image(
      image: tf.Tensor, size: Union[tf.Tensor, tuple], **kwargs
  ):
      """Resize image to the target `size`: Union[tf.Tensor, tuple]"""
      if not isinstance(image, tf.Tensor):
          raise AssertionError(
              f"image must be of type tf.Tensor but passed {type(image)}"
          )
      if not isinstance(size, (tuple, tf.Tensor)):
          raise AssertionError
      method = kwargs.get("method", "bilinear")
      return tf.image.resize(image, size, method)
  
label_desc: Use image node_id 2 for calling a global function with example usage: resize_image(image, size) and returns: tf