def get_isowner(self, obj):
        if not self.context.get('user').is_anonymous():
            return obj.creator == self.context.get('user')
        else:
            return False
Implemnets the scan method in BasePlugin class.
dataset/ETHPy150Open ExCiteS/geokey/geokey/contributions/serializers.py/FileSerializer.get_isowner--crossover with--dataset/ETHPy150Open openstack/compass-core/compass/hdsdiscovery/vendors/huawei/plugins/mac.py/Mac.scan