def translate_y(image, pixels, replace):
  """Equivalent of PIL Translate in Y dimension."""
  image = contrib_image.translate(wrap(image), [0, -pixels])
  return unwrap(image, replace)
Equivalent of PIL Translate in Y dimension.
inference_api/src/main/object_detection/utils/autoaugment_utils.py