code: def deform(image, deformer, resample=Image.Resampling.BILINEAR):
      """
      Deform the image.
  
      :param image: The image to deform.
      :param deformer: A deformer object.  Any object that implements a
                      ``getmesh`` method can be used.
      :param resample: An optional resampling filter. Same values possible as
         in the PIL.Image.transform function.
      :return: An image.
      """
      return image.transform(
          image.size,
          Image.Transform.MESH,
          deformer.getmesh(image),
          resample,
      )
  
imports: from __future__ import annotations
  import functools
  import operator
  import re
  from .None import ExifTags, Image, ImagePalette
label_desc: Use image node_id 11 for calling a global function with example usage: deform(image, deformer, resample) and returns: image