def parse(self, parser, token, tagname, kwargs):
        ltoken = self.mod(token)
        if self.name in kwargs:
            return False
        if self.true_values and ltoken in self.true_values:
            kwargs[self.name] = TemplateConstant(True)
        elif self.false_values and ltoken in self.false_values:
            kwargs[self.name] = TemplateConstant(False)
        elif self.default is NULL:
            allowed_values = []
            if self.true_values:
                allowed_values += self.true_values
            if self.false_values:
                allowed_values += self.false_values
            raise InvalidFlag(self.name, token, allowed_values, tagname)
        else:
            kwargs[self.name] = self.get_default()
        return True
Extract text from an image.
dataset/ETHPy150Open ojii/django-classy-tags/classytags/arguments.py/Flag.parse--crossover with--dataset/ETHPy150Open pudo/extractors/extractors/tesseract.py/extract_image