'Set flag to correct image orientation based on image metadata.
EXIF metadata within the image may contain a parameter indicating its proper
orientation. This value can equal 1 through 8, inclusive. "1" means that the
image is in its "normal" orientation, i.e., it should be viewed as it is
stored. Normally, this "orientation" value has no effect on the behavior of
the transformations. However, calling this function with the value
CORRECT_ORIENTATION any orientation specified in the EXIF metadata will be
corrected during the first transformation.
NOTE: If CORRECT_ORIENTATION is specified but the image is already in
portrait orientation, i.e., "taller" than it is "wide" no corrections will
be made, since it appears that the camera has already corrected it.
Regardless whether the correction was requested or not, the orientation
value in the transformed image is always cleared to indicate that no
additional corrections of the returned image\'s orientation is necessary.
Args:
correct_orientation: a value from ORIENTATION_CORRECTION_TYPE.
Raises:
BadRequestError if correct_orientation value is invalid.'

def set_correct_orientation(self, correct_orientation):

    if (correct_orientation not in ORIENTATION_CORRECTION_TYPE):
        raise BadRequestError(('Orientation    correction    must    be    in    %s' % ORIENTATION_CORRECTION_TYPE))
    self._correct_orientation = correct_orientation
