def _exclusively_used(self, context, hosting_device, tenant_id):
return (context.session.query(hd_models.SlotAllocation).filter(<EOL>hd_models.SlotAllocation.hosting_device_id == hosting_device['<STR_LIT:id>'],<EOL>hd_models.SlotAllocation.logical_resource_owner != tenant_id).<EOL>first() is None)<EOL>
Checks if only <tenant_id>'s resources use <hosting_device>.