code: def student_visible(self):
          
          group_ids = set()
          for group in Group.objects.all():
              if group.properties.student_visible:
                  group_ids.add(group.id)
  
          return Group.objects.filter(id__in=group_ids)
docs: Return a list of groups that are student-visible.