def get_is_abuse(self, obj):
        user = self.context['request'].user
        if user.is_anonymous():
            return False
        return user._id in obj.reports and not obj.reports[user._id].get('retracted', True)
dataset/ETHPy150Open CenterForOpenScience/osf.io/api/comments/serializers.py/CommentSerializer.get_is_abuse/original