transform_random_horizontal_flip function

Horizontally flip an image randomly with a given probability