def METHOD_NAME(notifications):
    if not notifications:
        return
    user = notifications[0][0].request.user
    guidance_mapping = defaultdict(list)
    guidances = []
    requests = set()
    for message, result in notifications:
        requests.add(message.request_id)
        for guidance in result.guidances:
            if guidance.notified:
                continue
            if guidance.send_custom_notification():
                continue
            guidances.append(guidance)
            guidance_mapping[guidance.action or guidance].append(message)
    if not guidance_mapping:
        return
    requests = list(requests)
    single_request = len(requests) == 1
    if single_request:
        subject = _("New guidance for your request [#{}]").format(requests[0])
    else:
        subject = _("New guidance for your requests")
    context = {
        "name": user.get_full_name(),
        "single_request": single_request,
        "request_title": notifications[0][0].request.title,
        "guidances": list(guidance_mapping.items()),
    }
    guidance_notification_mail.send(user=user, context=context, subject=subject)
    Guidance.objects.filter(id__in=[g.id for g in guidances]).update(notified=True)