def rotate(image, degrees, replace):
    'Rotates the image by degrees either clockwise or counterclockwise.\n\n  Args:\n    image: An image Tensor of type uint8.\n    degrees: Float, a scalar angle in degrees to rotate all images by. If\n      degrees is positive the image will be rotated clockwise otherwise it will\n      be rotated counterclockwise.\n    replace: A one or three value 1D tensor to fill empty pixels caused by\n      the rotate operation.\n\n  Returns:\n    The rotated version of image.\n  '
    degrees_to_radians = (math.pi / 180.0)
    radians = (degrees * degrees_to_radians)
    image = image_ops.rotate(wrap(image), radians)
    return unwrap(image, replace)
Rotates the image by degrees either clockwise or counterclockwise.

Args:
  image: An image Tensor of type uint8.
  degrees: Float, a scalar angle in degrees to rotate all images by. If
    degrees is positive the image will be rotated clockwise otherwise it will
    be rotated counterclockwise.
  replace: A one or three value 1D tensor to fill empty pixels caused by
    the rotate operation.

Returns:
  The rotated version of image.
def rotate(image, degrees, replace):
    'Rotates the image by degrees either clockwise or counterclockwise.\n\n  Args:\n    image: An image Tensor of type uint8.\n    degrees: Float, a scalar angle in degrees to rotate all images by. If\n      degrees is positive the image will be rotated clockwise otherwise it will\n      be rotated counterclockwise.\n    replace: A one or three value 1D tensor to fill empty pixels caused by\n      the rotate operation.\n\n  Returns:\n    The rotated version of image.\n  '
    degrees_to_radians = (math.pi / 180.0)
    radians = (degrees * degrees_to_radians)
    image = image_ops.rotate(wrap(image), radians)
    return unwrap(image, replace)