def _matches_any_role(self, context, roles):
        """Return True if any role in roles is allowed in context."""
        if context.is_admin:
            return True
        if 'all' in roles:
            return True
        if 'none' in roles:
            return False
        return any(role in context.roles for role in roles)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/ec2/__init__.py/Authorizer._matches_any_role/original