'Check if address scope id is owned by the tenant or not.
AddressScopeNotFound is raised if the
- address scope id doesn\'t exist or
- if the (unshared) address scope id is not owned by this tenant.
@return Returns true if the user is admin or tenant is owner
Returns false if the address scope id is shared and not
owned by the tenant.'

def is_address_scope_owned_by_tenant(self, context, id):

    address_scope = self._get_address_scope(context, id)
    return (context.is_admin or (address_scope.tenant_id == context.tenant_id))
