<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_request_email_templ(increq, template, **ctx):
 """Format the email message element for inclusion request notification. Formats the message according to the provided template file, using some default fields from 'increq' object as default context. Arbitrary context can be provided as keywords ('ctx'), and those will not be overwritten by the fields from 'increq' object. :param increq: Inclusion request object for which the request is made. :type increq: `invenio_communities.models.InclusionRequest` :param template: relative path to jinja template. :type template: str :param ctx: Optional extra context parameters passed to formatter. :type ctx: dict. :returns: Formatted message. :rtype: str """

    # Add minimal information to the contex (without overwriting).
    curate_link = '{site_url}/communities/{id}/curate/'.format(
        site_url=current_app.config['THEME_SITEURL'],
        id=increq.community.id)

    min_ctx = dict(
        record=Record.get_record(increq.record.id),
        requester=increq.user,
        community=increq.community,
        curate_link=curate_link,
    )
    for k, v in min_ctx.items():
        if k not in ctx:
            ctx[k] = v

    msg_element = render_template_to_string(template, **ctx)
    return msg_element