def __init__(self, data_stream, maximum_rotation=math.pi,
                 resample='nearest', **kwargs):
        if 0 <= maximum_rotation or maximum_rotation > math.pi:
            raise ValueError('maximum_rotation ({:.5f}) must be in the range '
                             '(0, math.pi]'.format(maximum_rotation))
        self.maximum_rotation = numpy.rad2deg(maximum_rotation)
        try:
            self.resample = getattr(Image, resample.upper())
        except AttributeError:
            raise ValueError("unknown resampling filter '{}'".format(resample))

        self.rng = kwargs.pop('rng', None)
        self.warned_axis_labels = False
        if self.rng is None:
            self.rng = numpy.random.RandomState(config.default_seed)
        kwargs.setdefault('produces_examples', data_stream.produces_examples)
        kwargs.setdefault('axis_labels', data_stream.axis_labels)
        super(Random2DRotation, self).__init__(data_stream, **kwargs)
dataset/ETHPy150Open mila-udem/fuel/fuel/transformers/image.py/Random2DRotation.__init__/swapped operands of `<=`