def update_context_before(self, context):
        if self.variable_binds:
            context.bind_variables(self.variable_binds)
        if self.generator_binds:
            for key, value in self.generator_binds.items():
                context.bind_generator_next(key, value)
Given an image, scales the image to the given ``width`` and ``height``.
dataset/ETHPy150Open svanoort/pyresttest/pyresttest/tests.py/Test.update_context_before--crossover with--dataset/ETHPy150Open gtaylor/django-athumb/athumb/pial/engines/pil_engine.py/PILEngine._scale