def METHOD_NAME(self, request, queryset, view):
    # Filter works only for "list" requests and allows to return
    # only non-organization objects if org isn't specified
    if (
        view.detail or not view.iam_organization_field or
        # FIXME:  It should be handled in another way. For example, if we try to get information for a specific job
        # and org isn't specified, we need to return the full list of labels, issues, comments.
        # Allow crowdsourcing users to get labels/issues/comments related to specific job.
        # Crowdsourcing user always has worker group and isn't a member of an organization.
        (
            view.__class__.__name__ in ('LabelViewSet', 'IssueViewSet', 'CommentViewSet') and
            request.query_params.get('job_id') and
            request.iam_context.get('organization') is None and
            request.iam_context.get('privilege') == 'worker'
        )
    ):
        return queryset
    visibility = None
    org = request.iam_context['organization']
    if org:
        visibility = {'organization': org.id}
    elif not org and self._parameter_is_provided(request):
        visibility = {'organization': None}
    if visibility:
        org_id = visibility.pop("organization")
        query = self._construct_filter_query(view.iam_organization_field, org_id)
        return queryset.filter(query).distinct()
    return queryset