def shear_x(image, level, replace):
    'Equivalent of PIL Shearing in X dimension.'
    image = image_ops.transform(wrap(image), [1.0, level, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0])
    return unwrap(image, replace)
Equivalent of PIL Shearing in X dimension.
def shear_x(image, level, replace):
    
    image = image_ops.transform(wrap(image), [1.0, level, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0])
    return unwrap(image, replace)