How can I rotate random degree in 4D tensor (B,C,H,W)

What about this: