def METHOD_NAME(self, instance):
    """
    Check that the provided instance or list of instances are matched by the
    current queryset.
    This confirms that any newly created or modified objects abide by the
    attributes granted by any applicable permissions.
    """
    if type(instance) is list:
        # Check that all instances are still included in the view's queryset
        conforming_count = self.queryset.filter(
            pk__in=[obj.pk for obj in instance]
        ).count()
        if conforming_count != len(instance):
            raise ObjectDoesNotExist
    elif not self.queryset.filter(pk=instance.pk).exists():
        raise ObjectDoesNotExist