code: def trapzWarp(pic, cx, cy, is_mask=False):
      """Complicated function (will be latex packaged as a fx)."""
      Y, X = pic.shape[:2]
      src = np.array([[0, 0], [X, 0], [X, Y], [0, Y]])
      dst = np.array(
          [[cx * X, cy * Y], [(1 - cx) * X, cy * Y], [X, Y], [0, Y]]
      )
      tform = tf.ProjectiveTransform()
      tform.estimate(src, dst)
      im = tf.warp(pic, tform.inverse, output_shape=(Y, X))
      return im if is_mask else (im * 255).astype("uint8")
  
imports: import numpy
  from skimage import transform
  from moviepy import *
  from moviepy.video.tools.drawing import color_gradient
label_desc: Use image node_id 1 for calling a global function with example usage: trapzWarp(pic, cx, cy, is_mask) and returns: unknown