def create_sample(self):
        try:
            im = Image.open(SAMPLE_IMAGE_PATH)
        except __HOLE__:
            raise IOError(
                'Photologue was unable to open the sample image: %s.' % SAMPLE_IMAGE_PATH)
        im = self.process(im)
        buffer = BytesIO()
        im.save(buffer, 'JPEG', quality=90, optimize=True)
        buffer_contents = ContentFile(buffer.getvalue())
        default_storage.save(self.sample_filename(), buffer_contents)
dataset/ETHPy150Open jdriscoll/django-photologue/photologue/models.py/BaseEffect.create_sample