def METHOD_NAME(self, request):
    labels_query = request.query_params.getlist(self.query_arg)
    if not labels_query:
        return None
    q = None
    for kv in labels_query:
        if '#' in kv:
            self.sep = '#'
            break
    for kv in labels_query:
        if self.sep not in kv:
            continue
        key, value = kv.strip().split(self.sep)[:2]
        if not all([key, value]):
            continue
        if q:
            q |= Q(name=key, value=value)
        else:
            q = Q(name=key, value=value)
    if not q:
        return []
    labels = Label.objects.filter(q, is_active=True) \
        .values_list('id', flat=True)
    return labels