def METHOD_NAME( batchX, batchY, max_angle=25.):
  for i in range(batchX.shape[0]):
    if bool(random.getrandbits(1)):
      # Random angle
      angle = random.uniform(-max_angle, max_angle)
      batchX[i] = scipy.ndimage.interpolation.rotate(batchX[i], angle,reshape=False, mode="reflect")
      batchY[i] = scipy.ndimage.interpolation.rotate(batchY[i], angle,reshape=False, mode="reflect")
  return batchX, batchY