def translate_x(image, pixels):
    'Equivalent of PIL Translate in X dimension.'
    image = tfa_image.translate_ops.translate(wrap(image), [(- pixels), 0])
    return unwrap(image)
Equivalent of PIL Translate in X dimension.
def translate_x(image, pixels):
    
    image = tfa_image.translate_ops.translate(wrap(image), [(- pixels), 0])
    return unwrap(image)