def _deserialize(self, value, attr, data):
        if not self.truthy:
            return bool(value)
        else:
            try:
                if value in self.truthy:
                    return True
                elif value in self.falsy:
                    return False
            except TypeError:
                pass
        self.fail('invalid')
dataset/ETHPy150Open marshmallow-code/marshmallow/marshmallow/fields.py/Boolean._deserialize/original