Perspective_warp does not work

I am trying to understand how different transforms work using docs examples. perspective_warp shows this error. How can I use perspective_warp in a list of transforms?