<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_filter_class(self, view, queryset=None):
 """ Return the django-filters `FilterSet` used to filter the queryset. """

        filter_class = getattr(view, 'filter_class', None)
        if filter_class:
            filter_model = filter_class.Meta.model

            assert issubclass(queryset._document, filter_model), \
                'FilterSet model %s does not match queryset model %s' % \
                (filter_model, queryset.model)

            return filter_class
        return