<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _filter_queryset(self, perms, queryset):
 """Filter object objects by permissions of user in request."""

        user = self.request.user if self.request else AnonymousUser()
        return get_objects_for_user(user, perms, queryset)