GridSampleTransform doesn’t seem to be a built-in transformation and based on the raised error message it requires two input arguments: grid and interp, so you would have to provide them.
Since I cannot find the implementation, I can just guess that the arguments might be similar to the grid_sample method.