def METHOD_NAME(allocation_obj, subject, template_name, url_path='', domain_url=''):
    """Send allocation admin emails
    """
    if not url_path:
        url_path = reverse('allocation-request-list')
    url = build_link(url_path, domain_url=domain_url)
    pi_name = f'{allocation_obj.project.pi.first_name} {allocation_obj.project.pi.last_name} ({allocation_obj.project.pi.username})'
    resource_name = allocation_obj.get_parent_resource
    ctx = email_template_context()
    ctx['pi'] = pi_name
    ctx['resource'] = resource_name
    ctx['url'] = url
    send_admin_email_template(
        f'{subject}: {pi_name} - {resource_name}',
        template_name,
        ctx,
    )