Random Erasing in a fixed region

Hey, I was wondering if it is possible to use RandomErasing or do random noise in a fixed area. More specifically, I want to know if, my image is say 128x128, will it be possible due to random noise or erasing inside just the central 50x50, or maybe on specific region other than this? Please help! Thanks!

You could write your custom RandomErasing transformation by changing the get_params method in these lines of code to your specific condition.
This would make sure to samples from your desired area instead of the whole image.