Different interpolation types in transforms v2


I was wondering if when using transforms v2 in torchvision we are allowed to specify different interpolation modes for the list of intputs. Like, if I have an RGB and a binary image, I may want to interpolate the former bilinearly and the latter with nearest neighbors, but I am getting an error when trying to dot his:

import torchvision.transforms.v2 as tr
from torchvision.transforms.functional import InterpolationMode as mode

# load an image and a mask into im, mask and try this:
x, y = tr.RandomRotation(45, interpolation = (mode.BILINEAR,  mode.NEAREST))(im, mask) 
# throws error

Any clue on how to do this? Thanks!