def register_resource(self, resource):

        self._resources[resource.name] = resource
Returns a function that can be used with the filter method
dataset/ETHPy150Open openstack/nova/nova/quota.py/QuotaEngine.register_resource--crossover with--dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/logger/models/ziggy_instance.py/ZiggyInstance.field_by_name_exists