code: def generate_additional_context(self, matching_datasets):
          
          top_tags = Tag.objects.filter(
              dataset__in=matching_datasets
          ).annotate(
              tag_count=Count('word')
          ).order_by('-tag_count')[:3]
  
          top_authors = Dataset.objects.filter(
              id__in=matching_datasets
          ).values('uploaded_by').annotate(
              author_count=Count('uploaded_by')
          ).order_by('-author_count')[:3]
  
          for author in top_authors:
              author['fullName'] = grab_names_from_emails([
                  author['uploaded_by']
              ])[author['uploaded_by']]
  
          return {
              'top_tags': top_tags,
              'top_authors': top_authors
          }
docs: Generate top tags and authors for a given Vertical.