def apply(self, img, d=<NUM_LIT:0>, **params):
return F.random_flip(img, d)<EOL>
Args:
        d (int): code that specifies how to flip the input. 0 for vertical flipping, 1 for horizontal flipping,
                -1 for both vertical and horizontal flipping (which is also could be seen as rotating the input by
                180 degrees).