call the function six.reraise with 3 arguments: ValidationError, ValidationError created with 2 arguments:
six . reraise ( ValidationError , ValidationError ( self . error_messages [ 'invalid_image' ] , code = 'invalid_image' , ) , sys . exc_info ( ) [ 2 ] )